Initial commit
This commit is contained in:
18
vendor/github.com/hyperhq/libcompose/logger/null.go
generated
vendored
Normal file
18
vendor/github.com/hyperhq/libcompose/logger/null.go
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
package logger
|
||||
|
||||
// NullLogger is a logger.Logger and logger.Factory implementation that does nothing.
|
||||
type NullLogger struct {
|
||||
}
|
||||
|
||||
// Out is a no-op function.
|
||||
func (n *NullLogger) Out(_ []byte) {
|
||||
}
|
||||
|
||||
// Err is a no-op function.
|
||||
func (n *NullLogger) Err(_ []byte) {
|
||||
}
|
||||
|
||||
// Create implements logger.Factory and returns a NullLogger.
|
||||
func (n *NullLogger) Create(_ string) Logger {
|
||||
return &NullLogger{}
|
||||
}
|
||||
Reference in New Issue
Block a user