logging

package
v0.0.0-...-34c5031 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(env string, debugLogging bool) (*zap.Logger, error)

Config configures a Zap logger based on the environment string and debugLevel

func FromContext

func FromContext(ctx context.Context) interface{}

FromContext returns a logger associated with a context, if any.

func NewContext

func NewContext(ctx context.Context, logger interface{}) context.Context

NewContext returns a new context with a logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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