new config options and error handles new input any
This commit is contained in:
19
logging/cgf.go
Normal file
19
logging/cgf.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package logging
|
||||
|
||||
type Config struct {
|
||||
MaxSize int // max. size of file in MB
|
||||
MaxBackup int //
|
||||
MaxAge int
|
||||
Debug bool
|
||||
TerminalOut bool
|
||||
}
|
||||
|
||||
func DefaultConfig() *Config {
|
||||
return &Config{
|
||||
Debug: false,
|
||||
TerminalOut: false,
|
||||
MaxSize: 1,
|
||||
MaxBackup: 3,
|
||||
MaxAge: 28,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user