Skip to content

Commit

Permalink
TODO: NOTE: how do Facility
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua T Corbin committed Dec 10, 2016
1 parent 41eb51a commit eb90a65
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions facility.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ type Facility interface {
With(...Field) Facility
Enabled(Entry) bool
Log(Entry, ...Field) error

// Log does not call Enabled
// Enabled composes like "any"

// Enabled may be non-deterministic.
// Log may drop the entry, but must do so deterministically.
// Log must duplicate an deterministic parts of Enabled, otherwise you
// won't work correctly under Tee!

}

// WriterFacility creates a facility that writes logs to an io.Writer. By
Expand Down

0 comments on commit eb90a65

Please sign in to comment.