new config options and error handles new input any

This commit is contained in:
Adrian Zuercher
2025-04-21 12:59:16 +02:00
parent 6f963ae0a4
commit 29f3ee26f9
5 changed files with 77 additions and 18 deletions

19
logging/cgf.go Normal file
View 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,
}
}