Documentation
¶
Index ¶
- Constants
- func AppendOtelHeader(opts ...eureka.Option) []eureka.Option
- func Debug() *zerolog.Event
- func Error() *zerolog.Event
- func GetReqeustHeader() map[string]string
- func Info() *zerolog.Event
- func Init(r *gin.Engine)
- func Log() *zero_mdc_log.Overlog
- func LogContextMiddleware(c *gin.Context)
- func MDC() *zero_mdc_log.MdcAdapter
- func NewReqeust(method, url string, body io.Reader) (*http.Response, error)
- func Panic() *zerolog.Event
- func SetLogger(configItems ...zero_mdc_log.ConfigItem) gin.HandlerFunc
Constants ¶
View Source
const ( POST = "POST" GET = "GET" )
Variables ¶
This section is empty.
Functions ¶
func AppendOtelHeader ¶
func AppendOtelHeader(opts ...eureka.Option) []eureka.Option
func Log ¶
func Log() *zero_mdc_log.Overlog
func MDC ¶
func MDC() *zero_mdc_log.MdcAdapter
func NewReqeust ¶
调用链的请求包装
func SetLogger ¶
func SetLogger(configItems ...zero_mdc_log.ConfigItem) gin.HandlerFunc
设置请求的middleware,每个请求写一些日志
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.