aboutsummaryrefslogtreecommitdiff
path: root/logging/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'logging/log.go')
-rw-r--r--logging/log.go10
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{},
+ }
+}