diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2017-12-30 13:47:58 +0100 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2017-12-30 13:51:19 +0100 |
commit | b40a3866dcd41ee05277255ae70c2e9ed73897b6 (patch) | |
tree | 1a338abf8a3e2c864066aeb4d5ea2596e19c7828 /logging | |
parent | 83e6dd9ac97d5f2faf1528228dfcb4fdf47cb3f7 (diff) | |
download | petrific-b40a3866dcd41ee05277255ae70c2e9ed73897b6.tar.gz petrific-b40a3866dcd41ee05277255ae70c2e9ed73897b6.tar.bz2 petrific-b40a3866dcd41ee05277255ae70c2e9ed73897b6.zip |
Add detailed logging for WriteDir
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{}, + } +} |