logging

package
v0.0.0-...-1e04dac Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: GPL-3.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx context.Context, l *Logger) context.Context

NewContext adds the given Logger to the Context.

Types

type Logger

type Logger struct {
	*logrus.Logger
}

Logger is a logging abstraction.

func FromContext

func FromContext(ctx context.Context) *Logger

FromContext extracts a Logger from the Context.

func NewLogger

func NewLogger(conf configuration.Logging) *Logger

NewLogger creates a logger instance.

Jump to

Keyboard shortcuts

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