# Functions
AccessHandler returns a handler that call f after each request.
CtxWithID adds the given xid.ID to the context.
CustomHeaderHandler adds given header from request's header as a field to the context's logger using fieldKey as field key.
No description provided by the author
No description provided by the author
No description provided by the author
FromFiberCtx gets the logger in the request's context.
IDFromCtx returns the unique id associated to the context if any.
IDFromFiberCtx returns the unique id associated to the *fiber.Ctx if any.
No description provided by the author
MethodHandler adds the request method as a field to the context's logger using fieldKey as field key.
NewHandlerMiddleware injects log into requests context.
No description provided by the author
PenguinIDHandler adds the request's penguin id as a field to the context's logger.
RefererHandler adds the request's referer as a field to the context's logger using fieldKey as field key.
RemoteAddrHandler adds the request's remote address as a field to the context's logger using fieldKey as field key.
RequestHandler adds the request method and URL as a field to the context's logger using fieldKey as field key.
RequestIDHandler returns a handler setting a unique id to the request which can be gathered using IDFromFiberCtx(req).
FiberCtxWithID adds the given xid.ID to the UserContext of *fiber.Ctx.
Logger Level Method Helpers.
UpdateContext updates the context of the logger in the request's context.
URLHandler adds the requested URL as a field to the context's logger using fieldKey as field key.
UserAgentHandler adds the request's user-agent as a field to the context's logger using fieldKey as field key.
No description provided by the author