Versions in this module Expand all Collapse all v1 v1.16.0 Jul 17, 2024 Changes in this version + const DefaultLineEnding + const OmitKey + func AddFields(enc zapcore.ObjectEncoder, fields []zapcore.Field) + func EpochMillisTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder) + func EpochNanosTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder) + func EpochTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder) + func FullNameEncoder(loggerName string, enc zapcore.PrimitiveArrayEncoder) + func ISO8601TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder) + func MillisDurationEncoder(d time.Duration, enc zapcore.PrimitiveArrayEncoder) + func NanosDurationEncoder(d time.Duration, enc zapcore.PrimitiveArrayEncoder) + func RFC3339NanoTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder) + func RFC3339TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder) + func SecondsDurationEncoder(d time.Duration, enc zapcore.PrimitiveArrayEncoder) + func StringDurationEncoder(d time.Duration, enc zapcore.PrimitiveArrayEncoder) + type ArrayMarshalerFunc func(zapcore.ArrayEncoder) error + func (f ArrayMarshalerFunc) MarshalLogArray(enc zapcore.ArrayEncoder) error + type DurationEncoder func(time.Duration, zapcore.PrimitiveArrayEncoder) + func (e *DurationEncoder) UnmarshalText(text []byte) error + type EncoderConfig struct + CallerKey string + ConsoleSeparator string + EncodeDuration DurationEncoder + EncodeName NameEncoder + EncodeTime TimeEncoder + FunctionKey string + LevelKey string + LineEnding string + MessageKey string + NameKey string + StacktraceKey string + TimeKey string + type NameEncoder func(string, zapcore.PrimitiveArrayEncoder) + func (e *NameEncoder) UnmarshalText(text []byte) error + type ObjectMarshalerFunc func(zapcore.ObjectEncoder) error + func (f ObjectMarshalerFunc) MarshalLogObject(enc zapcore.ObjectEncoder) error + type TimeEncoder func(time.Time, zapcore.PrimitiveArrayEncoder) + func TimeEncoderOfLayout(layout string) TimeEncoder + func (e *TimeEncoder) UnmarshalJSON(data []byte) error + func (e *TimeEncoder) UnmarshalText(text []byte) error + func (e *TimeEncoder) UnmarshalYAML(unmarshal func(interface{}) error) error