Documentation ¶
Index ¶
- func SetLogger(opts ...Option) gin.HandlerFunc
- type Option
- func WithClientErrorLevel(clientErrorLevel logger.Level) Option
- func WithDefaultLevel(defaultLevel logger.Level) Option
- func WithLogger(l logger.Logger) Option
- func WithServerErrorLevel(serverErrorLevel logger.Level) Option
- func WithSkipPath(skipPath []string) Option
- func WithSkipPathRegexp(skipPathRegexp *regexp.Regexp) Option
- func WithUtc(utc bool) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogger ¶
func SetLogger(opts ...Option) gin.HandlerFunc
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithClientErrorLevel ¶
func WithDefaultLevel ¶
func WithLogger ¶
func WithServerErrorLevel ¶
func WithSkipPath ¶
func WithSkipPathRegexp ¶
Click to show internal directories.
Click to hide internal directories.