Add NullLogger.

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

No files matched your search

+4 -1
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 {
/*