logger

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

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

Get returns the logger stored in the provided context. Returns a default zap production logger if none or an invalid logger is stored in context.

func Set

func Set(ctx context.Context, logger *zap.Logger) context.Context

Set stores the provided logger in a child context of ctx and returns the child context

Types

This section is empty.

Jump to

Keyboard shortcuts

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