Timberjack is now production-ready!
This v1.0.0 release marks the first stable version of Timberjack — a fork and enhancement of lumberjack. Timberjack provides a robust, pluggable logging backend with both size-based and time-based rotation features.
Features
- Size-based log rotation (
MaxSize) - Time-based log rotation (
RotationInterval) - Gzip compression of rotated files (
Compress) - Cleanup of old logs (
MaxBackups,MaxAge) - Manual log rotation via
Logger.Rotate() - Preservation of file permissions and ownership (on Linux)
- Fully compatible with
io.Writer, including the standardlogpackage - Comprehensive test suite
This version is API-stable. Future changes to the v1.x series will be backward-compatible. Breaking changes (if any) will be introduced in a future v2.0.0 release.
Installation
go get github.com/DeRuina/timberjack@v1.0.0Happy logging!