logging

package
v0.0.0-...-45e9846 Latest Latest
Warning

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

Go to latest
Published: May 28, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Verbose = false

Verbose determines how much the program will talk during execution

Functions

func Custom

func Custom(msg string, sig int)

Custom creates a log message and lets the caller choose the signal number

func Debug

func Debug(context, msg string, args ...interface{})

Debug logs the supplied message. Debug level.

func Error

func Error(msg string, args ...interface{})

Error logs the supplied message. Error report.

func Log

func Log(msg string, args ...interface{})

Log logs the supplied message. Log level.

func RegisterAsynchronousLogObserver

func RegisterAsynchronousLogObserver(observer LogObserver)

func RegisterSynchronousLogObserver

func RegisterSynchronousLogObserver(observer LogObserver)

RegisterLogObserver adds an observer to record the logs generated by kupak

func Warning

func Warning(msg string, args ...interface{})

Warning logs the supplied message. Warning level.

Types

type LogObserver

type LogObserver interface {
	// Record accepts an incoming log and a signal, which shows the log level
	Record(log string, sig int)
}

LogObserver defines the interface needed to record kupak logs

Jump to

Keyboard shortcuts

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