Console handler
Write records to stdout or stderr
The console handler is the default destination for local development, command line tools, and container logs.
err := logy.LoadConfig(&logy.Config{
Console: &logy.ConsoleConfig{
Enabled: true,
Target: "stderr",
Level: logy.LevelDebug,
Color: true,
Format: "%d{15:04:05.000} %p %c : %s%e%n",
},
})
if err != nil {
panic(err)
}Enabled turns console output on or off.
Target selects the stream, usually stdout or stderr.
Level controls the minimum level for console output.
Color enables readable level coloring for terminal output.
Format controls the human-readable pattern.
