log

package
v0.0.0-...-4d984c5 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2015 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFilter

func AddFilter(name string, level Level, writer LogWriter)

func Close

func Close()

func Critical

func Critical(arg0 interface{}, args ...interface{}) error

func Debug

func Debug(arg0 interface{}, args ...interface{})

func Error

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

func Fine

func Fine(arg0 interface{}, args ...interface{})

func Finest

func Finest(arg0 interface{}, args ...interface{})

func Info

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

func Logf

func Logf(level Level, format string, args ...interface{})

func Trace

func Trace(arg0 interface{}, args ...interface{})

func Warn

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

Types

type Level

type Level int
const (
	FINEST Level = iota
	FINE
	DEBUG
	TRACE
	INFO
	WARNING
	ERROR
	CRITICAL
)

type LogWriter

type LogWriter interface {
	log4go.LogWriter
}

func NewConsoleLogWriter

func NewConsoleLogWriter() LogWriter

func NewFileLogWriter

func NewFileLogWriter(fname string, rotate bool) LogWriter

func NewLogWriter

func NewLogWriter(h func(string)) LogWriter

type Logger

type Logger interface {
	AddFilter(name string, level Level, writer LogWriter)
	Finest(arg0 interface{}, args ...interface{})
	Fine(arg0 interface{}, args ...interface{})
	Debug(arg0 interface{}, args ...interface{})
	Trace(arg0 interface{}, args ...interface{})
	Info(arg0 interface{}, args ...interface{})
	Warn(arg0 interface{}, args ...interface{}) error
	Error(arg0 interface{}, args ...interface{}) error
	Critical(arg0 interface{}, args ...interface{}) error
	Logf(level Level, format string, args ...interface{})
	Close()
}
var Global Logger

func NewLogger

func NewLogger() Logger

Jump to

Keyboard shortcuts

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