context

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(ctx context.Context) logrus.FieldLogger

GetLogger returns a logger from context. If any logger isn't found, GetLogger returns standard instance of logrus.

func WithLogger

func WithLogger(parent context.Context, l logrus.FieldLogger) context.Context

WithLogger puts logger into a context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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