feat: zap日志配置
This commit is contained in:
@@ -7,3 +7,16 @@ redis:
|
||||
host: 127.0.0.1
|
||||
password: sundynix
|
||||
port: 6379
|
||||
|
||||
|
||||
|
||||
zap:
|
||||
director: log
|
||||
encode-level: LowercaseColorLevelEncoder
|
||||
format: console
|
||||
level: debug
|
||||
log-in-console: true
|
||||
prefix: '[sundynix-go]'
|
||||
retention-day: 5
|
||||
show-line: true
|
||||
stacktrace-key: stacktrace
|
||||
Reference in New Issue
Block a user