logger

package
v1.7.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 WithClientErrorLevel(clientErrorLevel logger.Level) Option

func WithDefaultLevel

func WithDefaultLevel(defaultLevel logger.Level) Option

func WithLogger

func WithLogger(l logger.Logger) Option

func WithServerErrorLevel

func WithServerErrorLevel(serverErrorLevel logger.Level) Option

func WithSkipPath

func WithSkipPath(skipPath []string) Option

func WithSkipPathRegexp

func WithSkipPathRegexp(skipPathRegexp *regexp.Regexp) Option

func WithUtc

func WithUtc(utc bool) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL