allow unsetting a log level through subcommand and add admin page for settng log level

This commit is contained in:
Mechiel Lukkien
2023-02-06 15:17:46 +01:00
parent 4202fbe108
commit 6cbe4d5d37
8 changed files with 212 additions and 7 deletions

View File

@ -38,6 +38,10 @@ var Logfmt bool
type Level int
func (l Level) String() string {
return LevelStrings[l]
}
var LevelStrings = map[Level]string{
LevelPrint: "print",
LevelFatal: "fatal",