Documentation ¶
Overview ¶
Package log exposes the interface to implement as logger and provides some implementations.
Index ¶
Constants ¶
View Source
const Prefix = "goup: "
Prefix is the prefix used when logging.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is the logger.
func DevNull ¶
func DevNull() *Logger
DevNull is the default logger only used to mock the logger interface and do nothing else.
type Printer ¶
type Printer interface { // Debugf logs a message at level Debug on the standard logger. Debugf(format string, args ...interface{}) // Errorf logs a message at level Error on the standard logger. Errorf(format string, args ...interface{}) // Infof logs a message at level Info on the standard logger. Infof(format string, args ...interface{}) // Warnf logs a message at level Warn on the standard logger. Warnf(format string, args ...interface{}) }
Printer must be implemented to act as a logger for Go Up.
Click to show internal directories.
Click to hide internal directories.