You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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() ?
The text was updated successfully, but these errors were encountered:
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{
response.duration: 0
?The text was updated successfully, but these errors were encountered: