Documentation ¶
Index ¶
- Variables
- func Custom(msg string, sig int)
- func Debug(context, msg string, args ...interface{})
- func Error(msg string, args ...interface{})
- func Log(msg string, args ...interface{})
- func RegisterAsynchronousLogObserver(observer LogObserver)
- func RegisterSynchronousLogObserver(observer LogObserver)
- func Warning(msg string, args ...interface{})
- type LogObserver
Constants ¶
This section is empty.
Variables ¶
View Source
var Verbose = false
Verbose determines how much the program will talk during execution
Functions ¶
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 RegisterAsynchronousLogObserver ¶
func RegisterAsynchronousLogObserver(observer LogObserver)
func RegisterSynchronousLogObserver ¶
func RegisterSynchronousLogObserver(observer LogObserver)
RegisterLogObserver adds an observer to record the logs generated by kupak
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
Click to show internal directories.
Click to hide internal directories.