logger

package
v0.9.25 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2018 License: BSD-2-Clause Imports: 4 Imported by: 17

Documentation

Overview

Package logger implements async log web api messages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(message string)

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

func Errorf added in v0.9.22

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

func Info

func Info(message string)

Info is a short cut function that uses package initialized logger

func Infof added in v0.9.22

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

func Initialize

func Initialize()

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 New

func New() *Logger

New configures and returns a new logger. It also kicks off the goroutine that performs the log writing as messages queue.

func (*Logger) Critical

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

func (*Logger) Debug

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

func (*Logger) Error

func (l *Logger) Error(message string)

func (*Logger) Handle

func (l *Logger) Handle()

func (*Logger) Info

func (l *Logger) Info(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)

Jump to

Keyboard shortcuts

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