Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NullLogger = nullLogger{}
NullLogger is a logger that does nothing
Functions ¶
func Debugf ¶
func Debugf(format string, v ...interface{})
Debugf records something in the debug log
func MockLogger ¶
MockLogger replaces the existing logger with a buffer and returns the log buffer and a restore function.
Types ¶
type Logger ¶
type Logger interface { // Notice is for messages that the user should see Notice(msg string) // Debug is for messages that the user should be able to find if they're debugging something Debug(msg string) }
A Logger is a fairly minimal logging tool.
Click to show internal directories.
Click to hide internal directories.