Versions in this module Expand all Collapse all v0 v0.1.1 Feb 11, 2020 Changes in this version + var UseCompression = func(l *Logger) + var UseLocaltime = func(l *Logger) type Option + func Options(opts ...Option) Option + func WithErrorHandler(eh ErrHandler) Option + func WithLogFile(aFilename string) Option + func WithMaxAge(aDays int) Option + func WithMaxBackups(aCount int) Option + func WithMaxBytes(aSize uint64) Option v0.1.0 Feb 9, 2020 Changes in this version + type ErrHandler func(error) + type Logger struct + func New(options ...Option) *Logger + func (l *Logger) Close() error + func (l *Logger) Write(p []byte) (n int, err error) + type Option func(l *Logger) + func Compression(aCompression bool) Option + func ErrorHandler(eh ErrHandler) Option + func Localtime(aLocaltime bool) Option + func LogFile(aFilename string) Option + func MaxAge(aDays int) Option + func MaxBackups(aCount int) Option + func MaxBytes(aSize uint64) Option