Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NullLogger = nullLogger{}
NullLogger is a logger ignoring any input.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Printf(format string, v ...interface{}) Println(v ...interface{}) Err(error) }
Logger can be used to report logging messages. The native log.Logger type implements this interface.
type ProxyLogger ¶
type ProxyLogger struct {
Logger Logger
}
ProxyLogger is a logger delegating to an underlying logger. Can be used to change the active logger during runtime.
func NewProxyLogger ¶
func NewProxyLogger(logger Logger) *ProxyLogger
func (*ProxyLogger) Err ¶
func (l *ProxyLogger) Err(err error)
func (*ProxyLogger) Printf ¶
func (l *ProxyLogger) Printf(format string, v ...interface{})
func (*ProxyLogger) Println ¶
func (l *ProxyLogger) Println(v ...interface{})
Click to show internal directories.
Click to hide internal directories.