Update Logger.py

Fixed log setting.
This commit is contained in:
Maxim 2020-11-24 13:33:54 -06:00 committed by GitHub
parent dc08f5a37b
commit 77e1940a5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class Logger:
chLogLevel = logging.CRITICAL # Prety musch the only one we change ever chLogLevel = logging.CRITICAL # Prety musch the only one we change ever
fhLogLevel = logging.DEBUG fhLogLevel = logging.DEBUG
log = logging.getLogger(loggerName) log = logging.getLogger(loggerName)
log.setLevel(globalLogLvl)
# Set our log output styles # Set our log output styles
fFormatter = logging.Formatter('[%(asctime)s] %(pathname)s:%(lineno)d %(levelname)s - %(message)s', '%m-%d %H:%M:%S') fFormatter = logging.Formatter('[%(asctime)s] %(pathname)s:%(lineno)d %(levelname)s - %(message)s', '%m-%d %H:%M:%S')