diff --git a/options.go b/options.go index 6331ab5ee..c1297e6b6 100644 --- a/options.go +++ b/options.go @@ -43,17 +43,6 @@ func Fields(fields ...Field) Option { }) } -// 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.