|
@@ -212,10 +212,10 @@ LOGGING = {
|
|
},
|
|
},
|
|
'v1_push': {
|
|
'v1_push': {
|
|
'level': 'INFO',
|
|
'level': 'INFO',
|
|
- 'class': 'logging.handlers.RotatingFileHandler',
|
|
|
|
|
|
+ 'class': 'logging.handlers.TimedRotatingFileHandler',
|
|
'filename': BASE_DIR + '/static/log/v1log/info.log',
|
|
'filename': BASE_DIR + '/static/log/v1log/info.log',
|
|
- 'backupCount': 3,
|
|
|
|
- 'maxBytes': 1024 * 1024 * 10 * 1024, # 10G
|
|
|
|
|
|
+ 'backupCount': 30,
|
|
|
|
+ 'when': 'D',
|
|
'formatter': 'standard',
|
|
'formatter': 'standard',
|
|
'encoding': 'utf-8',
|
|
'encoding': 'utf-8',
|
|
},
|
|
},
|