remove basicConfig

This commit is contained in:
petrucci4prez 2017-05-29 20:53:01 -04:00
parent 5d7505d63a
commit f3abaa6e8c
1 changed files with 5 additions and 1 deletions

View File

@ -63,7 +63,11 @@ class MasterLogger():
self.rotatingFile = TimedRotatingFileHandler(logdest + '/pyledriver-log', when='midnight') self.rotatingFile = TimedRotatingFileHandler(logdest + '/pyledriver-log', when='midnight')
self.rotatingFile.setFormatter(fileFormat) self.rotatingFile.setFormatter(fileFormat)
logging.basicConfig(level=getattr(logging, level), handlers=[console, self.rotatingFile]) self.rootLogger = logging.getLogger()
self.rootLogger.addHandler(console)
self.rootLogger.addHandler(self.rotatingFile)
self.rootLogger.setLevel(getattr(logging, level))
logger = logging.getLogger(name) logger = logging.getLogger(name)
# since the logger module sucks and doesn't allow me to init # since the logger module sucks and doesn't allow me to init