Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWriteSync ¶ added in v1.5.20
GetWriteSync 获取 zapcore.WriteSync
func NewZapProvider ¶
func NewZapProvider( path string, inConsole bool, encoderType EncoderType, level zapcore.Level, ) *zap.Logger
NewZapProvider 实例化:Zap日志服务提供者
Types ¶
type Cutter ¶
type Cutter struct { Director string // 日志文件夹 // contains filtered or unexported fields }
ZapProvider Zap日志服务提供者
type EncoderType ¶
type EncoderType string
ZapProvider Zap日志服务提供者
const ( EncoderTypeConsole EncoderType = "CONSOLE" EncoderTypeJson EncoderType = "JSON" )
Click to show internal directories.
Click to hide internal directories.