Versions in this module Expand all Collapse all v0 v0.9.1 Dec 2, 2020 Changes in this version + const DefaultEncoding + const DefaultLevel + var DefaultConfigs = Configs + func HumanizeTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder) + func NewLogger(c Configs) (*zap.Logger, error) + type Configs struct + Encoding EncodingType + Level string + ServiceContext *ServiceContext + type EncodingType string + const ConsoleEncoding + const HumanizeEncoding + const JSONEncoding + type ServiceContext struct + Service string + Version string + func (sc ServiceContext) MarshalLogObject(enc zapcore.ObjectEncoder) error