logger

package
v0.9.67 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: BSD-2-Clause Imports: 4 Imported by: 5 modules, 32 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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