log

package
v0.1.0-pre Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2014 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(m string)

func Debugf

func Debugf(m string, args ...interface{})

func Error

func Error(m string)

func Errorf

func Errorf(m string, args ...interface{})

func Info

func Info(m string)

func Infof

func Infof(m string, args ...interface{})

func Init

func Init(recorder Recorder)

func Warn

func Warn(m string)

func Warnf

func Warnf(m string, args ...interface{})

Types

type GlogRecorder

type GlogRecorder struct {
	Recorder
}

func (*GlogRecorder) Debug

func (l *GlogRecorder) Debug(m string)

func (*GlogRecorder) Error

func (l *GlogRecorder) Error(m string)

func (*GlogRecorder) Info

func (l *GlogRecorder) Info(m string)

func (*GlogRecorder) Warn

func (l *GlogRecorder) Warn(m string)

type Recorder

type Recorder interface {
	Info(m string)
	Debug(m string)
	Warn(m string)
	Error(m string)
}
var GlobalRecorder Recorder = &GlogRecorder{}

Jump to

Keyboard shortcuts

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