Documentation ¶
Index ¶
- func HttpHandler(handler http.Handler) http.Handler
- func LogAttr(ctx context.Context, attr slog.Attr)
- func LogDuration(ctx context.Context, duration time.Duration)
- func LogError(ctx context.Context, err error)
- func LogHttpPath(ctx context.Context, path string)
- func LogHttpRequest(ctx context.Context, method string)
- func LogHttpStatusCode(ctx context.Context, code int)
- func NewLogLine(ctx context.Context) context.Context
- func PrintLine(ctx context.Context, level slog.Level, message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogHttpPath ¶
func LogHttpRequest ¶
func LogHttpStatusCode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.