loggerMiddleware

package
v1.1.25 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 15 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"`
	ReportToEmail  bool     `json:"reportToEmail"`
	RePanic        bool     `json:"rePanic"`

	EmailReceiver []string             `json:"emailReceiver"`
	EmailSvc      recoverTool.EmailSvc `json:"emailSvc"`
}

Jump to

Keyboard shortcuts

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