encoders

package
v0.0.6-rc.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL