|
@ -130,6 +130,10 @@ def init_logging(logFileName: str, debug: bool = False): |
|
|
|
|
|
|
|
|
rootLogger = logging.getLogger("checker") |
|
|
rootLogger = logging.getLogger("checker") |
|
|
|
|
|
|
|
|
|
|
|
fileHandler = logging.FileHandler(logFileName) |
|
|
|
|
|
fileHandler.setFormatter(logFormatter) |
|
|
|
|
|
rootLogger.addHandler(fileHandler) |
|
|
|
|
|
|
|
|
consoleHandler = logging.StreamHandler() |
|
|
consoleHandler = logging.StreamHandler() |
|
|
consoleHandler.setFormatter(logFormatter) |
|
|
consoleHandler.setFormatter(logFormatter) |
|
|
rootLogger.addHandler(consoleHandler) |
|
|
rootLogger.addHandler(consoleHandler) |
|
|