From b40a3866dcd41ee05277255ae70c2e9ed73897b6 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sat, 30 Dec 2017 13:47:58 +0100 Subject: Add detailed logging for WriteDir --- logging/log.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'logging/log.go') 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{}, + } +} -- cgit v1.2.3-54-g00ecf