mirror of
https://git.fightbot.fun/hxuanyu/BingPaper.git
synced 2026-02-15 07:29:33 +08:00
增加日志配置选项支持,优化日志初始化与数据库日志记录
This commit is contained in:
@@ -4,6 +4,15 @@ server:
|
||||
|
||||
log:
|
||||
level: info
|
||||
filename: data/logs/app.log
|
||||
db_filename: data/logs/db.log
|
||||
max_size: 100
|
||||
max_backups: 3
|
||||
max_age: 7
|
||||
compress: true
|
||||
log_console: true
|
||||
show_db_log: false
|
||||
db_log_level: info
|
||||
|
||||
api:
|
||||
mode: local # local | redirect
|
||||
|
||||
Reference in New Issue
Block a user