added adding and editing of availabilities

This commit is contained in:
z1glr
2025-01-18 13:25:12 +00:00
parent e37310b774
commit e17c9db90c
24 changed files with 737 additions and 163 deletions

View File

@@ -37,7 +37,11 @@ func init() {
Out: os.Stdout,
TimeFormat: time.DateTime,
FormatLevel: func(i interface{}) string {
return strings.ToUpper(fmt.Sprintf("| %-6s|", i))
if i == nil {
return "| LOG |"
} else {
return strings.ToUpper(fmt.Sprintf("| %-6s|", i))
}
},
FormatFieldName: func(i interface{}) string {
return fmt.Sprintf("%s", i)