log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2015 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 Flush added in v0.2.0

func Flush()

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) Flush added in v0.2.0

func (l *GlogRecorder) Flush()

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)
	Flush()
}
var GlobalRecorder Recorder = &GlogRecorder{}

Jump to

Keyboard shortcuts

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