Explorar o código

使用concurrent-log-handler

locky hai 7 meses
pai
achega
e9bfc3fe71
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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',