I have a function
Is it possible to throw the exception to xyz and log it in xyz
def abc(self): try: handler = logging.FileHandler(logpath) handler.setFormatter(formatter) logger.addHandler(handler) except: logger.info("abc") def xyz(self): ..some code..I am not able to access the logger in except block for func abc.Is there any way such that i can log the error occuring in function abc or
Is it possible to throw the exception to xyz and log it in xyz