Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetZerologLogger ¶
func SetZerologLogger(loggerFns ...SetZerologLoggerFn) gin.HandlerFunc
SetZerologLogger attaches the zerolog logger returned from each loggerFns function to a shallow copy of the gin request context The logger can then be accessed in a controller method by calling zerolog.Ctx(ctx)
func ZerologLoggerWithRequestId ¶
ZerologLoggerWithRequestId returns a zerolog logger with a request_id field with a new GUID
func ZerologRequestLogger ¶
func ZerologRequestLogger() gin.HandlerFunc
ZerologRequestLogger logs request and response using the zerolog logger from the request context
Types ¶
Click to show internal directories.
Click to hide internal directories.