🚀 Timberjack – A Drop-In Logging Tool with Time-Based Rotation

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.

:package: GitHub: GitHub - DeRuina/timberjack: Timberjack is a Go log rolling library with support for size-based, time-based, and manual rotation.

:memo: Medium write-up: Timberjack: A Time-Based Log Rotation Library for Go | by Dean Ruina | May, 2025 | Medium

Feedback, issues, or PRs are welcome!