Monorepo for Tangled

appview/middleware: replace log package with structured slog logging master

Add logger *slog.Logger to Middleware struct and thread it through New(). Replace all log.Println/log.Printf calls with mw.logger.Error/Warn using structured key-value pairs. Standalone functions (AuthMiddleware, Paginate) use slog.Default() to avoid signature breakage. Update router.go call site to pass s.logger. Signed-off-by: Matías Insaurralde <matias@insaurral.de>


+31 -22
2 changed files