feat: add structured logging with slog

This commit is contained in:
Grail Finder
2025-05-02 09:46:46 +03:00
committed by Grail Finder (aider)
parent fd6f574b4f
commit 7c659757e7

View File

@ -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",