slog
slog copied to clipboard
内建的 rotate 机制有多个bug
System (please complete the following information):
- OS:
linux
- GO Version:
1.21.5
Describe the bug
内建的 rotate 机制:
- 在设置了 max backup 为 90 的情况下,只有3个备份。
- rotate 之后,gzip 压缩的 log 文件内容不完整,有大量文本丢失。