diff options
Diffstat (limited to 'logging')
-rw-r--r-- | logging/log.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/logging/log.go b/logging/log.go index 9bef591..ce3fb74 100644 --- a/logging/log.go +++ b/logging/log.go @@ -54,3 +54,13 @@ func NewLog(out io.Writer, level Level) *Log { return l } + +// NewNopLog creates a logger that is completly silent / doesn't log on any log level +func NewNopLog() *Log { + return &Log{ + NopLogger{}, + NopLogger{}, + NopLogger{}, + NopLogger{}, + } +} |