Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogFormat ¶
type LogFormat int
LogFormat is the format of the log output, compatible with the new slog package.
type LoggerMiddleware ¶
type LoggerMiddleware struct { Output io.Writer Format LogFormat LogIP bool Skip []string Options *slog.HandlerOptions }
LoggerMiddleware is a middleware that logs the request and response information.
Click to show internal directories.
Click to hide internal directories.