|
@@ -204,30 +204,27 @@ LOGGING = {
|
|
|
'class': 'concurrent_log_handler.ConcurrentRotatingFileHandler',
|
|
|
'filename': BASE_DIR + '/static/log/info/info.log',
|
|
|
'backupCount': 3,
|
|
|
- 'maxBytes': 1024 * 1024 * 10 * 1024, # 10G
|
|
|
+ 'maxBytes': 1024 * 1024 * 3 * 1024, # 3G
|
|
|
'formatter': 'standard',
|
|
|
- 'encoding': 'utf-8',
|
|
|
- 'use_gzip': True, # 启用 Gzip 压缩
|
|
|
+ 'encoding': 'utf-8'
|
|
|
},
|
|
|
'time': {
|
|
|
'level': 'INFO',
|
|
|
'class': 'concurrent_log_handler.ConcurrentRotatingFileHandler',
|
|
|
'filename': BASE_DIR + '/static/log/time/info.log',
|
|
|
'backupCount': 3,
|
|
|
- 'maxBytes': 1024 * 1024 * 10 * 1024, # 10G
|
|
|
+ 'maxBytes': 1024 * 1024 * 7 * 1024, # 7G
|
|
|
'formatter': 'standard',
|
|
|
- 'encoding': 'utf-8',
|
|
|
- 'use_gzip': True, # 启用 Gzip 压缩
|
|
|
+ 'encoding': 'utf-8'
|
|
|
},
|
|
|
'v1_push': {
|
|
|
'level': 'INFO',
|
|
|
'class': 'concurrent_log_handler.ConcurrentRotatingFileHandler',
|
|
|
'filename': BASE_DIR + '/static/log/v1log/info.log',
|
|
|
'backupCount': 3,
|
|
|
- 'maxBytes': 1024 * 1024 * 10 * 1024, # 10G
|
|
|
+ 'maxBytes': 1024 * 1024 * 8 * 1024, # 8G
|
|
|
'formatter': 'standard',
|
|
|
- 'encoding': 'utf-8',
|
|
|
- 'use_gzip': True, # 启用 Gzip 压缩
|
|
|
+ 'encoding': 'utf-8'
|
|
|
},
|
|
|
'customized_push': {
|
|
|
'level': 'INFO',
|
|
@@ -236,8 +233,7 @@ LOGGING = {
|
|
|
'backupCount': 3,
|
|
|
'maxBytes': 1024 * 1024 * 2 * 100, # 100M
|
|
|
'formatter': 'standard',
|
|
|
- 'encoding': 'utf-8',
|
|
|
- 'use_gzip': True, # 启用 Gzip 压缩
|
|
|
+ 'encoding': 'utf-8'
|
|
|
},
|
|
|
'error_info': {
|
|
|
'level': 'INFO',
|
|
@@ -246,8 +242,7 @@ LOGGING = {
|
|
|
'backupCount': 3,
|
|
|
'maxBytes': 1024 * 1024 * 2 * 100, # 100M
|
|
|
'formatter': 'standard',
|
|
|
- 'encoding': 'utf-8',
|
|
|
- 'use_gzip': True, # 启用 Gzip 压缩
|
|
|
+ 'encoding': 'utf-8'
|
|
|
},
|
|
|
},
|
|
|
'loggers': {
|