Documentation ¶
Index ¶
Constants ¶
View Source
const (
// EncoderNameCli is the encoder name to use for zap config
EncoderNameCli = "cli"
)
View Source
const (
// EncoderNameKV is the encoder name to use for zap config
EncoderNameKV = "kv"
)
View Source
const (
// EncoderNameKV is the encoder name to use for zap config
EncoderNameTSKV = "tskv"
)
Variables ¶
This section is empty.
Functions ¶
func NewCliEncoder ¶
func NewCliEncoder(cfg zapcore.EncoderConfig) (zapcore.Encoder, error)
NewCliEncoder constructs cli encoder
func NewKVEncoder ¶
func NewKVEncoder(cfg zapcore.EncoderConfig) (zapcore.Encoder, error)
NewKVEncoder constructs kv encoder
func NewTSKVEncoder ¶
func NewTSKVEncoder(cfg zapcore.EncoderConfig) (zapcore.Encoder, error)
NewKVEncoder constructs tskv encoder
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.