logger

package
v0.0.0-...-a6321ba Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GinLogger

func GinLogger(c *gin.Context)

GinLogger 用于替换gin框架的Logger中间件,不传参数,直接这样写

func GinRecovery

func GinRecovery(stack bool) gin.HandlerFunc

GinRecovery 用于替换gin框架的Recovery中间件,因为传入参数,再包一层

func InitLogger

func InitLogger() (err error)

2 初始化Logger对象

Types

This section is empty.

Jump to

Keyboard shortcuts

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