zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
29.34k stars 3.96k forks source link

The config file uses daily log rotation, but only access.log and stat.log are rotating correctly, while the others are not. #4427

Open hyjcls opened 1 month ago

hyjcls commented 1 month ago

切割结果是这样的,error.log和severe.log,slow.log无法分割 image 我的配置:
ServiceName: test Mode: file Rotation: daily path: ./logs Encoding: json TimeFormat: 2006-01-02 15:04:05 Stat: true

kevwan commented 3 weeks ago

The log files rotate when printing logs. If there is no error, it will not rotate.