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 8, 2016
1 parent 773d28f commit c633e2e
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 @@ -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.
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 c633e2e

Please sign in to comment.