Versions in this module Expand all Collapse all v0 v0.0.1 Aug 8, 2023 Changes in this version + func Next() gin.HandlerFunc + func NextWithConfig(config LoggerConfig) gin.HandlerFunc + type LogFormatter func(params LogFormatterParams) string + type LogFormatterParams struct + Body string + BodySize int + ClientIP string + ErrorMessage string + GinMode string + Keys map[string]any + Latency time.Duration + Method string + Path string + Request *http.Request + StatusCode int + TimeStamp time.Time + func (p *LogFormatterParams) IsOutputColor() bool + func (p *LogFormatterParams) MethodColor() string + func (p *LogFormatterParams) ResetColor() string + func (p *LogFormatterParams) StatusCodeColor() string + type LoggerConfig struct + Formatter LogFormatter + Output io.Writer + SkipBody middleware.Skipper + SkipPaths []string + Skipper middleware.Skipper