Add NullLogger.
For when you need a Logger but don't want one. ;)
This commit is contained in:
@@ -2,7 +2,7 @@ package logging
|
||||
|
||||
import (
|
||||
"log"
|
||||
`os`
|
||||
"os"
|
||||
)
|
||||
|
||||
/*
|
||||
@@ -86,6 +86,9 @@ type FileLogger struct {
|
||||
writer *os.File
|
||||
}
|
||||
|
||||
// NullLogger is used mainly for test implementations, mockup code, etc. It does absolutely nothing with all messages sent to it.
|
||||
type NullLogger struct{}
|
||||
|
||||
// MultiLogger is used to contain one or more Loggers and present them all as a single Logger.
|
||||
type MultiLogger struct {
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user