Documentation
¶
Overview ¶
Copyright 2023 Christopher Briscoe. All rights reserved.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Nop = &Logger{ Logger: &nop, roller: nil, } )
Nop is a no-operation logger instance with no roller attached
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
BaseDir string `json:"basedir"`
FileName string `json:"filename"`
MaxAge time.Duration `json:"maxage"`
MaxSize int64 `json:"maxsize"`
MaxBackups int `json:"maxbackups"`
Console bool `json:"console"`
Compress bool `json:"compress"`
}
Config stores the information required to start a new logger
Click to show internal directories.
Click to hide internal directories.