Documentation ¶
Index ¶
- Variables
- func CapitalColorFullNameEncoder(loggerName string, enc zapcore.PrimitiveArrayEncoder)
- func CapitalFullNameEncoder(loggerName string, enc zapcore.PrimitiveArrayEncoder)
- func ColorEpochTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
- func EpochTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
- func NewDefaultEncoderConfig() zapcore.EncoderConfig
- func NewEncoder(cfg zapcore.EncoderConfig) zapcore.Encoder
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedValueType = errors.New("unsupported value type")
Functions ¶
func CapitalColorFullNameEncoder ¶
func CapitalColorFullNameEncoder(loggerName string, enc zapcore.PrimitiveArrayEncoder)
CapitalColorFullNameEncoder serializes the logger name to an all-caps string and adds color. For example, gossip is serialized to "GOSSIP" and colored white.
func CapitalFullNameEncoder ¶
func CapitalFullNameEncoder(loggerName string, enc zapcore.PrimitiveArrayEncoder)
CapitalFullNameEncoder serializes the logger name to an all-caps string. For example, gossip is serialized to "GOSSIP".
func ColorEpochTimeEncoder ¶
func ColorEpochTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
ColorEpochTimeEncoder serializes a time.Time to an integer representing the number of seconds since the Unix epoch and adds color.
func EpochTimeEncoder ¶
func EpochTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
EpochTimeEncoder serializes a time.Time to an integer representing the number of seconds since the Unix epoch.
func NewDefaultEncoderConfig ¶
func NewDefaultEncoderConfig() zapcore.EncoderConfig
func NewEncoder ¶
func NewEncoder(cfg zapcore.EncoderConfig) zapcore.Encoder
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.