go-zero
go-zero copied to clipboard
The config file uses daily log rotation, but only access.log and stat.log are rotating correctly, while the others are not.
切割结果是这样的,error.log和severe.log,slow.log无法分割
我的配置:
ServiceName: test
Mode: file
Rotation: daily
path: ./logs
Encoding: json
TimeFormat: 2006-01-02 15:04:05
Stat: true
The log files rotate when printing logs. If there is no error, it will not rotate.
This issue is stale because it has been open for 30 days with no activity.