Skip to content

Commit

Permalink
options: drop Output
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua T Corbin committed Dec 9, 2016
1 parent 8522550 commit 8006f12
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
11 changes: 0 additions & 11 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8006f12

Please sign in to comment.