logger

package
v0.9.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(level int, message string)

Debug is a short cut function that uses package initialized logger and performance log

func Error

func Error(message string)

Error is a short cut function that uses package initialized logger and error log

func Event

func Event(evttype string, attributes ...string)

Event is a short cut function that uses package initialized logger and error log

func Info

func Info(log string, message string)

Info is a short cut function that uses package initialized logger

func Initialize

func Initialize(name string)

Initialialize sets up package var Log for use in Info(), Error(), and Perf()

func Perf

func Perf(message string)

Perf is a short cut function that uses package initialized logger and performance log

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}
var (
	Log *Logger
)

func NewLogger

func NewLogger(name string) *Logger

func (*Logger) Critical

func (l *Logger) Critical(log string, message string)

func (*Logger) Debug

func (l *Logger) Debug(level int, message string)

func (*Logger) Error

func (l *Logger) Error(message string)

func (*Logger) Event

func (l *Logger) Event(evttype string, attributes []string)

func (*Logger) Handle

func (l *Logger) Handle()

func (*Logger) Info

func (l *Logger) Info(log string, message string)

func (*Logger) Log

func (l *Logger) Log(log string, lvl l4g.Level, message string)

func (*Logger) Perf

func (l *Logger) Perf(message string)

func (*Logger) Warning

func (l *Logger) Warning(log string, message string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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