Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCLFEncoder ¶
func NewCLFEncoder(config zapcore.EncoderConfig) zapcore.Encoder
NewCLFEncoder returns a new encoder that logs messages with the Common Log Format. Each logged line will follow the format: <request-id> <remote-address> <name> <user-id> <time> <duration> "<method> <path> <protocol>" <status> <size>
func NewTextEncoder ¶
func NewTextEncoder(config zapcore.EncoderConfig) zapcore.Encoder
NewTextEncoder returns a new text encoder that logs messages similar to logrus text encoder.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.