log
Author: i-bingCreated Sep 18, 2026Updated Sep 18, 2026
Labelsbug
Go version
1.25.5
GoFrame version
2.9.6
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
When using GoFrame's file rotation, log writes may continue to be written to both the newly created app.log and the rotated file (for example, app.20260918.log) after rotation.
What did you see happen?
After a rotation occurs:
app.log is created as the new active log file. The rotated file, such as app.20260918.log, continues to receive log writes. As a result, log entries after the rotation can appear in both files.
What did you expect to see?
After rotation, subsequent log writes should be written only to the newly created app.log. The rotated file should no longer receive new log entries.
Source: gogf/gf