logger

package
v0.0.0-...-3fd4d17 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CtxCorrelationKey = "CorrelationID"

Variables

This section is empty.

Functions

func FromCtx

func FromCtx(ctx context.Context) *zap.Logger

FromCtx returns the Logger associated with the ctx. If no logger is associated, the default logger is returned, unless it is nil in which case a disabled logger is returned.

func Get

func Get() *zap.Logger

func WithCtx

func WithCtx(ctx context.Context, l *zap.Logger) context.Context

WithContext returns a copy of ctx with the Logger attached.

Types

This section is empty.

Jump to

Keyboard shortcuts

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