logger

package
v0.9.68 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Access added in v0.9.33

func Access(format string, a ...interface{})

func Debug

func Debug(level int, format string, a ...interface{})

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

func Error

func Error(format string, a ...interface{})

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(format string, a ...interface{})

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

func Warning added in v0.9.33

func Warning(format string, a ...interface{})

Types

type Logger

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

func NewLogger

func NewLogger(name string) *Logger

func (*Logger) Access added in v0.9.33

func (l *Logger) Access(format string, a ...interface{})

func (*Logger) Critical

func (l *Logger) Critical(log string, format string, a ...interface{})

func (*Logger) Debug

func (l *Logger) Debug(level int, format string, a ...interface{})

func (*Logger) Error

func (l *Logger) Error(format string, a ...interface{})

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(format string, a ...interface{})

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(format string, a ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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