瀏覽代碼

修改正式服日志配置

locky 9 月之前
父節點
當前提交
c3fa06239c
共有 3 個文件被更改,包括 18 次插入18 次删除
  1. 6 6
      Ansjer/cn_config/formal_settings.py
  2. 6 6
      Ansjer/eur_config/formal_settings.py
  3. 6 6
      Ansjer/us_config/formal_settings.py

+ 6 - 6
Ansjer/cn_config/formal_settings.py

@@ -238,8 +238,8 @@ LOGGING = {
             'level': 'INFO',
             'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/info/info.log',
-            'backupCount': 10,
-            'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
+            'backupCount': 5,
+            'maxBytes': 1024 * 1024 * 5 * 1024,  # 5G
             'formatter': 'standard',
             'encoding': 'utf-8',
         },
@@ -247,8 +247,8 @@ LOGGING = {
             'level': 'INFO',
             'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/error_code/error_code.log',
-            'backupCount': 10,
-            'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
+            'backupCount': 3,
+            'maxBytes': 1024 * 1024 * 20 * 1024,  # 20G
             'formatter': 'standard',
             'encoding': 'utf-8',
         },
@@ -256,8 +256,8 @@ LOGGING = {
             'level': 'INFO',
             'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/success_code/success_code.log',
-            'backupCount': 10,
-            'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
+            'backupCount': 3,
+            'maxBytes': 1024 * 1024 * 2 * 1024,  # 20G
             'formatter': 'standard',
             'encoding': 'utf-8',
         },

+ 6 - 6
Ansjer/eur_config/formal_settings.py

@@ -234,8 +234,8 @@ LOGGING = {
             'level': 'INFO',
             'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/info/info.log',
-            'backupCount': 10,
-            'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
+            'backupCount': 3,
+            'maxBytes': 1024 * 1024 * 5 * 1024,  # 5G
             'formatter': 'standard',
             'encoding': 'utf-8',
         },
@@ -243,8 +243,8 @@ LOGGING = {
             'level': 'INFO',
             'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/error_code/error_code.log',
-            'backupCount': 10,
-            'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
+            'backupCount': 3,
+            'maxBytes': 1024 * 1024 * 20 * 1024,  # 20G
             'formatter': 'standard',
             'encoding': 'utf-8',
         },
@@ -252,8 +252,8 @@ LOGGING = {
             'level': 'INFO',
             'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/success_code/success_code.log',
-            'backupCount': 10,
-            'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
+            'backupCount': 3,
+            'maxBytes': 1024 * 1024 * 20 * 1024,  # 20G
             'formatter': 'standard',
             'encoding': 'utf-8',
         },

+ 6 - 6
Ansjer/us_config/formal_settings.py

@@ -238,8 +238,8 @@ LOGGING = {
             'level': 'INFO',
             'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/info/info.log',
-            'backupCount': 10,
-            'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
+            'backupCount': 5,
+            'maxBytes': 1024 * 1024 * 5 * 1024,  # 5G
             'formatter': 'standard',
             'encoding': 'utf-8',
         },
@@ -247,8 +247,8 @@ LOGGING = {
             'level': 'INFO',
             'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/error_code/error_code.log',
-            'backupCount': 10,
-            'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
+            'backupCount': 3,
+            'maxBytes': 1024 * 1024 * 20 * 1024,  # 20G
             'formatter': 'standard',
             'encoding': 'utf-8',
         },
@@ -256,8 +256,8 @@ LOGGING = {
             'level': 'INFO',
             'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/success_code/success_code.log',
-            'backupCount': 10,
-            'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
+            'backupCount': 3,
+            'maxBytes': 1024 * 1024 * 20 * 1024,  # 20G
             'formatter': 'standard',
             'encoding': 'utf-8',
         },