Add NullLogger.

For when you need a Logger but don't want one. ;)
This commit is contained in:
2022-03-13 13:29:31 -04:00
parent c4b3c6441a
commit 81a2d308f0
2 changed files with 70 additions and 1 deletions

View File

@@ -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 {
/*