Documentation ¶
Overview ¶
Package log provides a log interface
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface { // Log inserts a log entry. Arguments may be handled in the manner // of fmt.Print, but the underlying logger may also decide to handle // them differently. Log(v ...interface{}) // Logf insets a log entry. Arguments are handled in the manner of // fmt.Printf. Logf(format string, v ...interface{}) }
Logger is a generic logging interface
var ( // The global default logger DefaultLogger Logger = &noOpLogger{} )
Directories ¶
Path | Synopsis |
---|---|
Package capture implements the Logger interface by capturing logged lines.
|
Package capture implements the Logger interface by capturing logged lines. |
Package info allows users to create a Logger interface from any object that supports Info and Infof.
|
Package info allows users to create a Logger interface from any object that supports Info and Infof. |
Package nest allows users to use a Logger interface to create another Logger interface.
|
Package nest allows users to use a Logger interface to create another Logger interface. |
Package print allows users to create a Logger interface from any object that supports Print and Printf.
|
Package print allows users to create a Logger interface from any object that supports Print and Printf. |
Click to show internal directories.
Click to hide internal directories.