logging

package
v0.126.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RequestIDHeader = "X-Request-Id"
)

Variables

This section is empty.

Functions

func FindLogLevel added in v0.112.0

func FindLogLevel(logLevel string) (zapcore.Level, error)

func New

func New(prettyLogging bool, debug bool, level zapcore.Level) *zap.Logger

func RequestIDFromContext added in v0.117.0

func RequestIDFromContext(ctx context.Context) string

func WithRequestID added in v0.117.0

func WithRequestID(reqID string) zap.Field

func WithRequestIDFromContext added in v0.117.0

func WithRequestIDFromContext(ctx context.Context) zap.Field

Types

type RequestIDKey added in v0.117.0

type RequestIDKey struct{}

Jump to

Keyboard shortcuts

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