logging

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

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

FromContext returns the logger from the context if one exists. Otherwise it returns a new logger.

func InitLogging

func InitLogging(level string)

InitLogging initializes the global logger.

func ToContext

func ToContext(ctx context.Context, log *zap.Logger) context.Context

ToContext adds a logger to 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