fix: base log delay=True减少冲突

This commit is contained in:
caoqianming 2025-04-02 10:11:00 +08:00
parent 783a56dfea
commit 20943494ad
1 changed files with 3 additions and 0 deletions

View File

@ -315,6 +315,7 @@ LOGGING = {
'backupCount': 30, # 备份数
'formatter': 'standard', # 输出格式
'encoding': 'utf-8', # 设置默认编码,否则打印出来汉字乱码
'delay': True, # 延迟打开文件,减少锁定冲突
},
# 输出错误日志
'error': {
@ -327,6 +328,7 @@ LOGGING = {
'backupCount': 30, # 备份数
'formatter': 'standard', # 输出格式
'encoding': 'utf-8', # 设置默认编码
'delay': True, # 延迟打开文件,减少锁定冲突
},
# 控制台输出
'console': {
@ -346,6 +348,7 @@ LOGGING = {
'backupCount': 30,
'formatter': 'standard',
'encoding': 'utf-8', # 设置默认编码
'delay': True, # 延迟打开文件,减少锁定冲突
},
},
# 配置用哪几种 handlers 来处理日志