encoder

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

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