Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultLevel = "info" DefaultEncoding = "json" )
Variables ¶
View Source
var ( DefaultConfigs = Configs{ Level: DefaultLevel, Encoding: DefaultEncoding, } )
Functions ¶
Types ¶
type Configs ¶
type Configs struct { Level string Encoding string ServiceContext *ServiceContext }
type ServiceContext ¶
func (ServiceContext) MarshalLogObject ¶
func (sc ServiceContext) MarshalLogObject(enc zapcore.ObjectEncoder) error
Click to show internal directories.
Click to hide internal directories.