Documentation ¶
Overview ¶
gin日志类 可以保存访问日志和错误恢复日志
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func E初始化Gin日志类 ¶
E初始化Gin日志类 初始化GinLogger
例子
logger.E初始化Gin日志类("./log/elog.log", "debug") r.Use(logger.GinLogger(), logger.GinRecovery(true))
func GinRecovery ¶
func GinRecovery(stack bool) gin.HandlerFunc
GinRecovery recover掉项目可能出现的panic,并使用zap记录相关日志
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.