From 244b478362932f012e60b69f6d21d4d61049bbc8 Mon Sep 17 00:00:00 2001 From: myitinos Date: Sat, 12 Oct 2019 00:53:24 +0800 Subject: [PATCH] update checker --- checker.py | 4 ++++ 1 file changed, 4 insertions(+) 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)