瀏覽代碼

使用concurrent-log-handler

locky 7 月之前
父節點
當前提交
e9bfc3fe71
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      AnsjerPush/eur_config/eur_formal_settings.py

+ 2 - 1
AnsjerPush/eur_config/eur_formal_settings.py

@@ -210,8 +210,9 @@ LOGGING = {
         },
         'v1_push': {
             'level': 'INFO',
-            'class': 'logging.handlers.RotatingFileHandler',
+            'class': 'concurrent_log_handler.ConcurrentRotatingFileHandler',
             'filename': BASE_DIR + '/static/log/v1log/info.log',
+            'backupCount': 3,
             'maxBytes': 1024 * 1024 * 10 * 1024,  # 10G
             'formatter': 'standard',
             'encoding': 'utf-8',