Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GinLogger ¶
func GinLogger() gin.HandlerFunc
func GinLoggerWithConfig ¶
func GinLoggerWithConfig(conf LoggerConfig) gin.HandlerFunc
func SetInfoLogLevel ¶
func SetInfoLogLevel()
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.