Bladeren bron

修改日志配置

locky 1 jaar geleden
bovenliggende
commit
5c20b81910

+ 2 - 2
AnsjerPush/cn_config/cn_formal_settings.py

@@ -200,7 +200,7 @@ LOGGING = {
         },
         'info': {
             'level': 'INFO',
-            'class': 'logging.handlers.TimedRotatingFileHandler',
+            'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/info/info.log',
             'backupCount': 10,
             'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
@@ -209,7 +209,7 @@ LOGGING = {
         },
         'time': {
             'level': 'INFO',
-            'class': 'logging.handlers.TimedRotatingFileHandler',
+            'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/time/info.log',
             'backupCount': 10,
             'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G

+ 2 - 2
AnsjerPush/eur_config/eur_formal_settings.py

@@ -194,7 +194,7 @@ LOGGING = {
         },
         'info': {
             'level': 'INFO',
-            'class': 'logging.handlers.TimedRotatingFileHandler',
+            'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/info/info.log',
             'backupCount': 10,
             'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
@@ -203,7 +203,7 @@ LOGGING = {
         },
         'time': {
             'level': 'INFO',
-            'class': 'logging.handlers.TimedRotatingFileHandler',
+            'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/time/info.log',
             'backupCount': 10,
             'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G

+ 2 - 2
AnsjerPush/test_config/test_settings.py

@@ -199,7 +199,7 @@ LOGGING = {
         },
         'info': {
             'level': 'INFO',
-            'class': 'logging.handlers.TimedRotatingFileHandler',
+            'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/info/info.log',
             'backupCount': 10,
             'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
@@ -208,7 +208,7 @@ LOGGING = {
         },
         'time': {
             'level': 'INFO',
-            'class': 'logging.handlers.TimedRotatingFileHandler',
+            'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/time/info.log',
             'backupCount': 10,
             'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G

+ 2 - 2
AnsjerPush/us_config/formal_settings.py

@@ -201,7 +201,7 @@ LOGGING = {
         },
         'info': {
             'level': 'INFO',
-            'class': 'logging.handlers.TimedRotatingFileHandler',
+            'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/info/info.log',
             'backupCount': 10,
             'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
@@ -210,7 +210,7 @@ LOGGING = {
         },
         'time': {
             'level': 'INFO',
-            'class': 'logging.handlers.TimedRotatingFileHandler',
+            'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/time/info.log',
             'backupCount': 10,
             'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G