|
@@ -234,55 +234,55 @@ LOGGING = {
|
|
|
},
|
|
|
'info': {
|
|
|
'level': 'INFO',
|
|
|
- 'class': 'logging.handlers.RotatingFileHandler',
|
|
|
+ 'class': 'concurrent_log_handler.ConcurrentRotatingFileHandler',
|
|
|
'filename': BASE_DIR + '/static/log/info/info.log',
|
|
|
- 'backupCount': 3,
|
|
|
- 'maxBytes': 1024 * 1024 * 5 * 1024, # 5G
|
|
|
+ 'backupCount': 5,
|
|
|
+ 'maxBytes': 1024 * 1024 * 10 * 1024, # 10G
|
|
|
'formatter': 'standard',
|
|
|
'encoding': 'utf-8',
|
|
|
},
|
|
|
'error_code': {
|
|
|
'level': 'INFO',
|
|
|
- 'class': 'logging.handlers.RotatingFileHandler',
|
|
|
+ 'class': 'concurrent_log_handler.ConcurrentRotatingFileHandler',
|
|
|
'filename': BASE_DIR + '/static/log/error_code/error_code.log',
|
|
|
- 'backupCount': 3,
|
|
|
- 'maxBytes': 1024 * 1024 * 20 * 1024, # 20G
|
|
|
+ 'backupCount': 5,
|
|
|
+ 'maxBytes': 1024 * 1024 * 10 * 1024, # 10G
|
|
|
'formatter': 'standard',
|
|
|
'encoding': 'utf-8',
|
|
|
},
|
|
|
'success_code': {
|
|
|
'level': 'INFO',
|
|
|
- 'class': 'logging.handlers.RotatingFileHandler',
|
|
|
+ 'class': 'concurrent_log_handler.ConcurrentRotatingFileHandler',
|
|
|
'filename': BASE_DIR + '/static/log/success_code/success_code.log',
|
|
|
- 'backupCount': 3,
|
|
|
- 'maxBytes': 1024 * 1024 * 20 * 1024, # 20G
|
|
|
+ 'backupCount': 5,
|
|
|
+ 'maxBytes': 1024 * 1024 * 10 * 1024, # 10G
|
|
|
'formatter': 'standard',
|
|
|
'encoding': 'utf-8',
|
|
|
},
|
|
|
'pay': {
|
|
|
'level': 'INFO',
|
|
|
- 'class': 'logging.handlers.TimedRotatingFileHandler',
|
|
|
+ 'class': 'concurrent_log_handler.ConcurrentRotatingFileHandler',
|
|
|
'filename': BASE_DIR + '/static/log/pay/info.log',
|
|
|
- 'backupCount': 60,
|
|
|
- 'when': 'D',
|
|
|
+ 'backupCount': 3,
|
|
|
+ 'maxBytes': 1024 * 1024 * 2 * 100, # 200M
|
|
|
'formatter': 'standard',
|
|
|
'encoding': 'utf-8',
|
|
|
},
|
|
|
'apple_pay': {
|
|
|
'level': 'INFO',
|
|
|
- 'class': 'logging.handlers.RotatingFileHandler',
|
|
|
+ 'class': 'concurrent_log_handler.ConcurrentRotatingFileHandler',
|
|
|
'filename': BASE_DIR + '/static/log/apple_pay/apple_pay.log',
|
|
|
- 'backupCount': 10,
|
|
|
- 'maxBytes': 1024 * 1024 * 2 * 1024, # 2G
|
|
|
+ 'backupCount': 3,
|
|
|
+ 'maxBytes': 1024 * 1024 * 2 * 100, # 200M
|
|
|
'formatter': 'standard',
|
|
|
'encoding': 'utf-8',
|
|
|
},
|
|
|
'token': {
|
|
|
'level': 'INFO',
|
|
|
- 'class': 'logging.handlers.TimedRotatingFileHandler',
|
|
|
+ 'class': 'concurrent_log_handler.ConcurrentRotatingFileHandler',
|
|
|
'filename': BASE_DIR + '/static/log/token/token.log',
|
|
|
- 'backupCount': 60,
|
|
|
- 'when': 'D',
|
|
|
+ 'backupCount': 3,
|
|
|
+ 'maxBytes': 1024 * 1024 * 2 * 1024, # 2G
|
|
|
'formatter': 'standard',
|
|
|
'encoding': 'utf-8',
|
|
|
},
|