mirror of
https://github.com/mickael-menu/zk
synced 2024-11-07 15:20:21 +00:00
18 lines
434 B
Go
18 lines
434 B
Go
package util
|
|
|
|
// Logger can be used to report logging messages.
|
|
// The native log.Logger type implements this interface.
|
|
type Logger interface {
|
|
Printf(format string, v ...interface{})
|
|
Println(v ...interface{})
|
|
}
|
|
|
|
// NullLogger is a logger ignoring any input.
|
|
var NullLogger = nullLogger{}
|
|
|
|
type nullLogger struct{}
|
|
|
|
func (n *nullLogger) Printf(format string, v ...interface{}) {}
|
|
|
|
func (n *nullLogger) Println(v ...interface{}) {}
|