log

package
v0.0.0-...-2de5c19 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package log implements logging attached to golang.org/x/net/context

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) (log15.Logger, bool)

FromContext gets the logger out of the context

func Log

func Log(ctx context.Context) log15.Logger

Log gets the log from the context

func NewContext

func NewContext(ctx context.Context, args ...interface{}) context.Context

NewContext creates a context with the log populated

func SetLog

func SetLog(ctx context.Context, l log15.Logger) context.Context

SetLog sets the log on the context

Types

This section is empty.

Jump to

Keyboard shortcuts

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