How tanium/lumberjack works
Lumberjack is a small Go rolling-file logger used as an io.Writer by logging applications. The principal workflow writes to the current log, rotates it when the configured size limit is reached, and manages timestamped backups through retention and optional gzip compression. The README documents these capabilities; the sampled implementation excerpts show the write-to-rotation path and post-rotation processing, but omit some internal details.
Main entry points: lumberjack.go File rotation
Components 6
Other components
- Logging application
- Logger writes
lumberjack.go - File rotation
lumberjack.go - Backup retention
lumberjack.go - Gzip compression
lumberjack.go - Log files
Connections 6
- Logging application → Logger writes: writes logs
README.md - Logger writes → File rotation: rotates on size
README.md - File rotation → Log files: renames and creates
README.md - File rotation → Backup retention: cleans backups
lumberjack.go - File rotation → Gzip compression: compresses backups
lumberjack.go - Logger writes → Log files: writes current file
README.md