log

package
v4.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithLogger

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

ContextWithLogger set *Logger into given context and return

func FromContext

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

FromContext get *Logger from context Notice: If ctx is nil or no Logger was set before, it will return a default logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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