Documentation ¶
Index ¶
Constants ¶
View Source
const ( // --- key contant --- PRESETS = "zap.presets" // --- value constant --- PRESETS_EXAMPLE = "example" PRESETS_PROD = "prod" PRESETS_DEV = "dev" PRESETS_NOP = "nop" )
Variables ¶
This section is empty.
Functions ¶
func NewLoggerOption ¶
func NewLoggerOption() *runtimeOption
Types ¶
type TimeFormater ¶
type TimeFormater struct {
// contains filtered or unexported fields
}
timeformater define thime formater
func NewTimeFormater ¶
func NewTimeFormater(pattern string) *TimeFormater
func (*TimeFormater) CustomTimeEncoder ¶
func (myself *TimeFormater) CustomTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
func (*TimeFormater) SetPattern ¶
func (myself *TimeFormater) SetPattern(newPattern string)
func (*TimeFormater) SetTimeZone ¶
func (myself *TimeFormater) SetTimeZone(newTimezone string)
type ZapFactoryRegister ¶
type ZapFactoryRegister struct { }
ZapFactoryRegister
func (*ZapFactoryRegister) CreateLogger ¶
func (myself *ZapFactoryRegister) CreateLogger(multiopts ...loggercom.Option) ([]loggercom.Logger, error)
CreateLogger add logger name string
func (*ZapFactoryRegister) CreateStructBean ¶
func (myself *ZapFactoryRegister) CreateStructBean() loggercom.StructBean
Source Files ¶
Click to show internal directories.
Click to hide internal directories.