log

package
v0.0.0-...-c9ce307 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagTraceID   = "trace-id"
	TagSessionID = "session-id"
)
View Source
const (
	ContextKey = "ctx-logger"
)

Variables

This section is empty.

Functions

func Ctx

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

func Global

func Global() *zap.SugaredLogger

func WithMeta

func WithMeta(meta map[string]any) []any

WithMeta sets logger meta tags

func WrapCtx

func WrapCtx(ctx context.Context, meta map[string]any) context.Context

WrapCtx wraps the current logger in a context

Types

This section is empty.

Jump to

Keyboard shortcuts

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