Open emilymuller1991 opened 2 years ago
Edit the Logger
class to inherit from logging.Logger
and then setFileHandler
can be a method of that class, so it is fine to edit itself.
class Logger(logging.Logger):
def __init__(self, name="testing"):
super().__init__(name)
self.logger.setLevel(logging.INFO)
configure logging into class where setFileHandler does not edit its input. does work but not optimal.