logger

package
v0.0.0-...-6c4cad4 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) logrus.FieldLogger

FromContext returns an logger with all values from context loaded on it.

func SetLogger

func SetLogger(logger logrus.FieldLogger)

SetLogger receives a logger and stores it as the base logger for the package.

Types

type IndexContext

type IndexContext int

IndexContext is a key type for context values

const (
	TraceIDKey IndexContext = iota
)

Key constants for context values

type Logger

type Logger logrus.FieldLogger

Logger defines a logging interface

Jump to

Keyboard shortcuts

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