Logging middleware is used to write log information out to the console on each request/response.
(logger *slog.Logger)
| 39 | // Logging middleware is used to write log information out to the console |
| 40 | // on each request/response. |
| 41 | func Logging(logger *slog.Logger) Middleware { |
| 42 | return func(next http.Handler) http.Handler { |
| 43 | return logging(logger, next) |
| 44 | } |
| 45 | } |