新增zap日志库的支持,并提供Recovery的中间件
This commit is contained in:
+9
-1
@@ -64,4 +64,12 @@ log:
|
||||
prefix: '[GIN-VUE-ADMIN]'
|
||||
log-file: true
|
||||
stdout: 'DEBUG'
|
||||
file: 'DEBUG'
|
||||
file: 'DEBUG'
|
||||
|
||||
# zap logger configuration
|
||||
zap:
|
||||
level: "debug"
|
||||
file: "DEBUG"
|
||||
max_size: 200
|
||||
max_age: 30
|
||||
max_backups: 7
|
||||
Reference in New Issue
Block a user