log

package
v0.0.0-...-0115e91 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CorrelationIDKey     = "correlation-id"
	UserCorrelationIDKey = "user-correlation-id"
)

Variables

View Source
var (
	L = newLoggerEntry(true)
)

Functions

func FromContext

func FromContext(ctx context.Context) *zap.SugaredLogger

func InitLog

func InitLog(local bool)

func UpdateContext

func UpdateContext(ctx context.Context, fields ...interface{}) (context.Context, *zap.SugaredLogger)

func WithError

func WithError(logger *zap.SugaredLogger, err error) *zap.SugaredLogger

func WithLogger

func WithLogger(ctx context.Context, logger *zap.SugaredLogger) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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