context

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 2 Imported by: 0

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
JackTT - Gopher 🇻🇳