Hi all,
I wanted a way to rotate logs based on time in Go (e.g., daily or hourly), but couldn’t find a clean solution.
So I forked Lumberjack and built Timberjack, a drop-in replacement that adds time-based rotation to the original.
It works just like Lumberjack, but adds the option to rotate logs on a schedule instead of just by size.
Medium write-up: Timberjack: A Time-Based Log Rotation Library for Go | by Dean Ruina | May, 2025 | Medium
Feedback, issues, or PRs are welcome!