diff --git a/handlers/handlers.go b/handlers/handlers.go index 7fe8a96..da65ba5 100644 --- a/handlers/handlers.go +++ b/handlers/handlers.go @@ -2,9 +2,15 @@ package handlers import ( "html/template" + "log/slog" "net/http" ) +func init() { + // init slog to be at level debug and us json structured logs; ai! + slog = slog.New() +} + var roundWords = map[string]string{ "hamster": "blue", "child": "red",