diff --git a/appmanage/api/utils/common_log.py b/appmanage/api/utils/common_log.py index 7d208388..a7a6665c 100644 --- a/appmanage/api/utils/common_log.py +++ b/appmanage/api/utils/common_log.py @@ -13,7 +13,7 @@ class MyLogging(): logFile = logPath + logName formatter = logging.Formatter('%(asctime)s %(levelname)s: %(message)s') # handler - time_rotating_file_handler = handlers.TimedRotatingFileHandler(filename=logFile, when='D', encoding='utf-8') + time_rotating_file_handler = handlers.TimedRotatingFileHandler(filename=logFile, when="MIDNIGHT", interval=1, encoding='utf-8') time_rotating_file_handler.setLevel(logging.DEBUG) time_rotating_file_handler.setFormatter(formatter) # config