feat: replace log with rs/zerolog for structured logging
Switch from the standard library log package to rs/zerolog with ConsoleWriter for colorful terminal output in dev mode and JSON output in production. Users can now provide their own logger via Options.Logger or set the level via Options.LogLevel.
This commit is contained in:
@@ -54,7 +54,7 @@ func main() {
|
||||
v.Config(via.Options{
|
||||
DevMode: true,
|
||||
DocumentTitle: "Search",
|
||||
LogLvl: via.LogLevelWarn,
|
||||
LogLevel: via.LogLevelWarn,
|
||||
})
|
||||
|
||||
v.AppendToHead(
|
||||
|
||||
Reference in New Issue
Block a user