Documentation ¶
Index ¶
Constants ¶
View Source
const LogLevel = zerolog.InfoLevel
Variables ¶
Functions ¶
func GinLogger ¶
func GinLogger() gin.HandlerFunc
func GinLoggerWithConfig ¶
func GinLoggerWithConfig(conf LoggerConfig) gin.HandlerFunc
func SetLogLevel ¶
Types ¶
type LoggerConfig ¶
type LoggerConfig struct { // SkipPaths is an url path array which logs are not written. // Optional. SkipPaths []string // LogLevel for every request other than error // Optional. Default value is zerolog.DebugLevel RequestLogLevel zerolog.Level }
LoggerConfig defines the config for Logger middleware.
Click to show internal directories.
Click to hide internal directories.