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