Documentation
¶
Overview ¶
Package httplog logs one line per HTTP request through the application's slog.Logger.
It replaces github.com/samber/slog-echo, which is unusable on Echo v5: it tests for a routing error with err.(*echo.HTTPError), and v5 returns the unexported *echo.httpError, so every 404 was reported and logged as a 500. Echo's own RequestLogger resolves the status through the error handler instead, which is the only thing that knows it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.