log

package
v0.0.0-...-c063610 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Global log variable.
	L = log15.New()
)

Functions

func DefaultHandler

func DefaultHandler() log15.Handler

DefaultHandler returns the current handler. It can be used to create additional logger instances that all use the same handler for output.

func Msg

func Msg(format string, args ...interface{}) string

Msg is short hand to create a message string using fmt.Sprintf.

func New

func New(ctx ...interface{}) log15.Logger

New creates a new instance of the logger using the current default handler for its output.

func SetDefaultHandler

func SetDefaultHandler(handler log15.Handler)

SetDefaultHandler sets the handler for the logger. It wraps handlers in a SyncHandler. You should not pass in handlers that are already wrapped in a SyncHandler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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