mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
调整日志文件文件为每小时生成一个
This commit is contained in:
@@ -187,7 +187,8 @@ LOGGING = {
|
||||
# 新增内容
|
||||
'class': 'logging.handlers.TimedRotatingFileHandler',
|
||||
'filename': os.path.join(BASE_DIR, 'db/logs.log'),
|
||||
'when': 'midnight',
|
||||
'when': 'h',
|
||||
'interval': 1,
|
||||
'backupCount': 30,
|
||||
# 'class': 'logging.handlers.RotatingFileHandler',
|
||||
# 'filename': "db/{}.log".format(datetime.datetime.today()), # 日志文件的位置
|
||||
|
||||
Reference in New Issue
Block a user