logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquireFrom

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

AcquireFrom pulls logger from context if exists or returns no-op logger

func NewLogger

func NewLogger(logLevel string, environment string, component string) (*zap.Logger, error)

NewLogger creates a logger

func TransitWith

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

TransitWith packages both passed context and logger to enable logger to move across processes.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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