diff --git a/_examples/standalone/main.go b/_examples/standalone/main.go index 429dd267..ceff337b 100644 --- a/_examples/standalone/main.go +++ b/_examples/standalone/main.go @@ -46,7 +46,9 @@ import ( ) func main() { - logger := log.NewBeautifulLogger("authsome") + // Format is chosen automatically: a terminal gets aligned, coloured columns, + // anything else gets JSON. Override with FORGE_LOG_FORMAT=pretty|json. + logger := log.New(log.Config{Name: "authsome"}) // Create the in-memory store (swap with pgstore.New(db) for production). store := memory.New()