Closed stavros-k closed 11 months ago
I suppose we can do something like that:
slogfiber.NewWithConfig(
logger,
slogfiber.Config{
CustomAttrs: func (ctx *fiber.Ctx) []slog.Attr {
.......
},
WithRequestBody: bool,
WithResponseBody: bool,
},
)
WDYT ?
Looks good yea
Added to v1.5.0 (see readme).
For example request/response body or request ID.
Currently there is request id being added (that can be disabled). What if I want to use the request ID middleware, in order to use a custom header / generator. How I could log that?
Thanks!