logger

package
v0.0.0-...-b03b744 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 2 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 retrieves a logger from a context and panics if there isn't one.

func NewContext

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

NewContext returns a new context with a logger and panics if a nil value is passed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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