log

package
v0.0.0-...-8382529 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrinterHandler

func PrinterHandler(printer Printer, fmtr log15.Format) log15.Handler

Dumps logs to a printer. Any regular `Printer` will do -- `fmt.Print` qualifies.

Types

type Printer

type Printer func(a ...interface{}) (n int, err error)

type Writer

type Writer struct {
	Log   log15.Logger
	Level log15.Lvl
	Msg   string
}

Exposes a logger as an `io.Writer`, so you can have any system output tagged logs.

func (Writer) Write

func (lw Writer) Write(msg []byte) (int, error)

Jump to

Keyboard shortcuts

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