Versions in this module Expand all Collapse all v1 v1.0.0 Feb 27, 2026 Changes in this version + func New(opts Options) (klog.Logger, func(), error) + type AtomicWriter struct + func (aw *AtomicWriter) Swap(w io.Writer) + func (aw *AtomicWriter) Write(p []byte) (int, error) + type DailySizeRotator struct + func NewDailySizeRotator(aw *AtomicWriter, cfg rotatorConfig) (*DailySizeRotator, error) + func (r *DailySizeRotator) Close() error + func (r *DailySizeRotator) CurrentFile() *os.File + type Options struct + BaseFilename string + Compress bool + ConsolePretty bool + ConsoleToStderr bool + ForceDailyRollover bool + Level klog.Level + Location *time.Location + MaxBackups int + MaxSizeBytes int64 + TimeFieldFormat string