Documentation
¶
Index ¶
- Variables
- func Error(template string, arguments interface{})
- func GinLogger(logger *zap.Logger) gin.HandlerFunc
- func GinRecovery(logger *zap.Logger, stack bool) gin.HandlerFunc
- func Info(template string, arguments interface{})
- func InitLogger() (err error)
- func Panic(template string, arguments interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger, _ = zap.NewProduction()
Functions ¶
func GinRecovery ¶
func GinRecovery(logger *zap.Logger, stack bool) gin.HandlerFunc
GinRecovery recover掉项目可能出现的panic,并使用zap记录相关日志
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.