Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { // Debug logs the arguments as a single debug message. Debug(args ...interface{}) // Debugf logs a formatted debug message, injecting the arguments into the template string. Debugf(template string, args ...interface{}) // Error logs the arguments as a single error message. Error(args ...interface{}) // Errorf logs a formatted error message, injecting the arguments into the template string. Errorf(template string, args ...interface{}) }
Logger is the interface used by this module in order to support logging. By default the error messages are printed to the STDERR and debug messages are ignored, but you can inject any logger you wish into a Streamer.
NOTE that it is assumed by this module for a Logger implementation to be safe for concurrent use.
Click to show internal directories.
Click to hide internal directories.