context

package
v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context, l log.Interface) (context.Context, *log.Entry)

FromContext takes an entry and a context then returns an entry populated from the context object

func Initialize

func Initialize()

Initialize calls 3 functions to set up, then logs before terminating

func WithField

func WithField(ctx context.Context, key string, value interface{}) context.Context

WithField adds a log field to the context

func WithFields

func WithFields(ctx context.Context, fields log.Fielder) context.Context

WithFields adds many log fields to the context

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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