Versions in this module Expand all Collapse all v0 v0.2.1 Oct 22, 2025 Changes in this version + const DPanicLevel + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const PanicLevel + const WarnLevel + func New(file string, opts ...Option) (*logger, error) + type Option func(*logger) + func WithAsyncWrite(asyncWrite bool) Option + func WithBufferSize(bufferSize int) Option + func WithClock(clock filerotator.Clock) Option + func WithFlushInterval(flushInterval time.Duration) Option + func WithMaxAge(maxAge time.Duration) Option + func WithMaxBackups(maxBackups uint) Option + func WithOutputType(outputType OutputType) Option + func WithRotateType(rotateType filerotator.RotateType) Option + func WithRotationSize(rotationSize int64) Option + func WithRotationTime(rotationTime time.Duration) Option + func WithSymlink(file string) Option + type OutputType int + const OutputBoth + const OutputConsole + const OutputFile + const OutputNone