Jobs & Workflows https://armen.surge.sh
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 lines
932 B

/*
------------------------------------------------------------------------------------------------------------------------
####### data ####### Copyright (c) 2021 mls-361 #################################################### MIT License #######
------------------------------------------------------------------------------------------------------------------------
*/
package data
const (
_defaultLoggerLevel = "trace"
_defaultLoggerOutput = "stderr"
)
// Logger AFAIRE.
type Logger struct {
Level string
Output string
Facility string
}
func (l *Logger) validate() error {
if l.Level == "" {
l.Level = _defaultLoggerLevel
}
if l.Output == "" {
l.Output = _defaultLoggerOutput
}
if l.Output == "syslog" {
if l.Facility == "" {
l.Facility = "local0"
}
}
return nil
}
/*
######################################################################################################## @(°_°)@ #######
*/