Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEncoder ¶
GetEncoder 将日志消息编码为指定的格式 @return zapcore.Encoder 返回Encoder
func GetLoggerWriter ¶
func GetLoggerWriter(config *config.Log) zapcore.WriteSyncer
GetLoggerWriter return writerSyncer @param *app.Log config 日志配置信息 @return zapcore.WriteSyncer 返回一个日志记录器
func GinLogger ¶
func GinLogger() gin.HandlerFunc
GinLogger 接收gin框架默认的日志 @return gin.HandlerFunc 返回中间件上下文
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.