Skip to content
Search

Lumberjack

lastmod 2026-11-10created 2025-11-252 edits

lumberjack is a log file rolling (rotation) package for the Go language. Because it implements io.Writer, it can be plugged in as the output target of the standard log package or logging libraries such as zap. When a file exceeds the configured size, it switches to a new file, and you can set the number of files to keep, the number of days to keep them, and whether to compress them. Its distinguishing trait is that it does not generate logs itself and only handles file management.

lumberjack is a log rolling package for Go

See also

Favorite site

author Zer0, MCPBot sitemap