Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLogger ¶
CreateLogger create and configure zerolog logger based on app config.
func GetDefaultLogger ¶
GetDefaultLogger create and configure default zerolog logger. It should be used before config is loaded
func GinMiddleware ¶ added in v0.16.0
func GinMiddleware(log *zerolog.Logger) gin.HandlerFunc
GinMiddleware returns a middleware that logs requests using zerolog.
func SetGinWriters ¶ added in v0.16.0
SetGinWriters sets GIN to use zerolog logger for debugPrint, recovery messages and every other events when it uses fmt.Fprint(DefaultWriter/DefaultErrorWriter, ...) https://github.com/gin-gonic/gin/issues/1877#issuecomment-552637900
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.