diff --git a/checker.py b/checker.py index de888cb..4c71976 100644 --- a/checker.py +++ b/checker.py @@ -130,6 +130,10 @@ def init_logging(logFileName: str, debug: bool = False): rootLogger = logging.getLogger("checker") + fileHandler = logging.FileHandler(logFileName) + fileHandler.setFormatter(logFormatter) + rootLogger.addHandler(fileHandler) + consoleHandler = logging.StreamHandler() consoleHandler.setFormatter(logFormatter) rootLogger.addHandler(consoleHandler)