mirror of https://github.com/mickael-menu/zk
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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{}) {}
|