log

package
v0.0.0-...-c11a323 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger *zap.SugaredLogger
)

Functions

func FromContext

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

FromContext retrieves the zap.SugaredLogger from the context.

func Init

func Init(config *config.LogConfig) *zap.SugaredLogger

func ToContext

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

ToContext stores the zap.SugaredLogger in the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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