Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion _examples/standalone/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down