log

package
v0.0.0-...-af7e2a9 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 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(arg0 string, args ...interface{})

we should never really use these . . . always prefer logging through a prefix logger

func Error

func Error(arg0 string, args ...interface{}) error

func Info

func Info(arg0 string, args ...interface{})

func LogTo

func LogTo(target string)

func Warn

func Warn(arg0 string, args ...interface{}) error

Types

type Logger

type Logger interface {
	AddTags(...string)
	SetTags(...string)
	Name() string
	Debug(string, ...interface{})
	Info(string, ...interface{})
	Warn(string, ...interface{}) error
	Error(string, ...interface{}) error
}

func NewTaggedLogger

func NewTaggedLogger(tags ...string) Logger

type TaggedLogger

type TaggedLogger struct {
	*log.Logger
	// contains filtered or unexported fields
}

func (*TaggedLogger) AddTags

func (l *TaggedLogger) AddTags(tags ...string)

func (*TaggedLogger) Debug

func (l *TaggedLogger) Debug(arg0 string, args ...interface{})

func (*TaggedLogger) Error

func (l *TaggedLogger) Error(arg0 string, args ...interface{}) error

func (*TaggedLogger) Info

func (l *TaggedLogger) Info(arg0 string, args ...interface{})

func (*TaggedLogger) Name

func (l *TaggedLogger) Name() string

func (*TaggedLogger) SetTags

func (l *TaggedLogger) SetTags(tags ...string)

func (*TaggedLogger) Warn

func (l *TaggedLogger) Warn(arg0 string, args ...interface{}) error

Jump to

Keyboard shortcuts

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