From 8006f12147c9be731c2c8e39f3476f164561dc1c Mon Sep 17 00:00:00 2001 From: Joshua T Corbin Date: Wed, 7 Dec 2016 10:29:06 -0800 Subject: [PATCH] options: drop Output --- options.go | 11 ----------- writer.go | 2 -- 2 files changed, 13 deletions(-) diff --git a/options.go b/options.go index 9354a01cc..fdfc7bdcd 100644 --- a/options.go +++ b/options.go @@ -47,17 +47,6 @@ func (fs fieldsT) apply(log *logger) { log.fac = log.fac.With(fields...) } -// Output sets the destination for the logger's output. The supplied WriteSyncer -// is automatically wrapped with a mutex, so it need not be safe for concurrent -// use. -func Output(w WriteSyncer) Option { - return optionFunc(func(log *logger) { - iof := log.fac.(ioFacility) - iof.Output = newLockedWriteSyncer(w) - log.fac = iof - }) -} - // ErrorOutput sets the destination for errors generated by the logger. The // supplied WriteSyncer is automatically wrapped with a mutex, so it need not be // safe for concurrent use. diff --git a/writer.go b/writer.go index 3ed51727c..e96d1843a 100644 --- a/writer.go +++ b/writer.go @@ -30,8 +30,6 @@ import ( var ( // Discard is a convenience wrapper around ioutil.Discard. Discard = AddSync(ioutil.Discard) - // DiscardOutput is an Option that discards logger output. - DiscardOutput = Output(Discard) ) // A WriteFlusher is an io.Writer that can also flush any buffered data.