loggerMiddleware

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMiddleWareLogger

func GetMiddleWareLogger() *logrus.Logger

func LoggerMiddleware

func LoggerMiddleware(opts ...*Option) gin.HandlerFunc

Types

type Option added in v0.0.9

type Option struct {
	Service        string   `json:"service"`
	WhiteList      []string `json:"whiteList"`
	ReportToSentry bool     `json:"reportToSentry"`
	RePanic        bool     `json:"rePanic"`
}

Jump to

Keyboard shortcuts

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