updates
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-01-14 09:28:30 +11:00
parent ffe0c01fd7
commit 7400e08c54
35 changed files with 731 additions and 357 deletions

View File

@@ -65,10 +65,9 @@ func ToLevel(level string) Level {
}
}
// GetLevel returns the log level from the environment variable.
// GetLevel returns the default log level.
func GetLevel() Level {
level := os.Getenv("LOG_LEVEL")
return ToLevel(level)
return LevelInfo
}
// Output represents the log output.
@@ -93,8 +92,7 @@ func ToOutput(output string) Output {
}
}
// GetOutput returns the log output from the environment variable.
// GetOutput returns the default log output.
func GetOutput() Output {
output := os.Getenv("LOG_OUTPUT")
return ToOutput(output)
return OutputText
}