Versions in this module Expand all Collapse all v1 v1.19.4 Jan 21, 2026 v1.19.3 Jan 20, 2026 Changes in this version + const DefaultMaxBackups + const DefaultMaxSize + type Option func(*RotatingFile) + func WithMaxBackups(count int) Option + func WithMaxSize(size int64) Option + type RotatingFile struct + func NewRotatingFile(path string, opts ...Option) (*RotatingFile, error) + func (r *RotatingFile) Close() error + func (r *RotatingFile) Write(p []byte) (int, error)