Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultGinLogger ¶ added in v0.0.4
func DefaultGinLogger() gin.HandlerFunc
DefaultGinLogger 记录gin的请求日志 loggerMap中的2个key: access 代表web访问日志, business 代表业务日志
func DefaultGinRecovery ¶ added in v0.0.4
func DefaultGinRecovery(stack bool) gin.HandlerFunc
DefaultGinRecovery recover掉项目可能出现的panic
func GinLoggerMap ¶
func GinLoggerMap(loggerMap map[string]*zap.Logger) gin.HandlerFunc
GinLoggerMap 记录gin的请求日志 loggerMap中的2个key: access 代表web访问日志, business 代表业务日志
func GinRecovery ¶
func GinRecovery(logger *zap.Logger, stack bool) gin.HandlerFunc
GinRecovery recover掉项目可能出现的panic
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.