Versions in this module Expand all Collapse all v1 v1.1.10 May 11, 2026 Changes in this version + type Level int + const DEBUG + const ERROR + const INFO + const WARN + func (l Level) String() string + type Logger interface + Debug func(msg string, keyvals ...any) + Error func(msg string, err error, keyvals ...any) + Info func(msg string, keyvals ...any) + Warn func(msg string, keyvals ...any) + func DefaultConsoleLogger() Logger + func DefaultFileLogger(filePath string, opts ...Option) (Logger, error) + func DefaultNoopLogger() Logger + func DefaultZapLogger(cfg ZapConfig) Logger + type Option func(*defaultLogger) + func WithLevel(level Level) Option + type ZapConfig struct + Compress bool + Console bool + Filename string + MaxAge int + MaxBackups int + MaxSize int