Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FileRotateLogs = new(fileRotateLogs)
)
Functions ¶
func CustomTimeEncoder ¶
func CustomTimeEncoder(t time.Time, encoder zapcore.PrimitiveArrayEncoder)
func NewZapProvider ¶
func NewZapProvider(path string, inConsole bool, encoderType EncoderType) *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" )
type ZapProvider ¶
type ZapProvider struct {
// contains filtered or unexported fields
}
ZapProvider Zap日志服务提供者
Click to show internal directories.
Click to hide internal directories.