This repository was archived by the owner on Jun 4, 2025. It is now read-only.
Feedback #1
Closed
Description
- Concise mode should print flat fields only, e.g. req_headers="", resp_body, resp_bytes, resp_status
- Consider renaming to "Verbose" / "Flat" etc.? It's not that this would be useful for development only -- it's the opposite, it's because we need a "flat" and "consise" log output for log collectors/ingestion.
- Consider splitting httplog.Handler into
httplog.NewConciseHandler()
/httplog.NewFlatHandler()
/httplog.NewVerboseHandler()
etc. and make it an explicit dependency into the httplog.Options...r.Use(httplog.RequestLogger(slog.Default(), &httplog.Options{
- Remove
response.duration: 0
? - Do we need to implement Handler.WithGroup() ?
Metadata
Metadata
Assignees
Labels
No labels