zap日志的配置优化及初始化优化

This commit is contained in:
SliverHorn
2020-09-03 16:25:52 +08:00
parent 01c4206443
commit 012f2569b1
3 changed files with 81 additions and 38 deletions
+9 -5
View File
@@ -68,8 +68,12 @@ log:
# zap logger configuration
zap:
level: "debug"
file: "DEBUG"
max_size: 200
max_age: 30
max_backups: 7
# 可使用 "debug", "info", "warn", "error", "dpanic", "panic", "fatal",
level: 'debug'
# console: 控制台, json: json格式输出
format: 'console'
prefix: '[GIN-VUE-ADMIN]'
director: 'logs'
link_name: 'ZapLatestLog'
show_line: true
log_in_console: true