Skip to content

Commit

Permalink
Meta: drop (Set)Level
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua T Corbin committed Nov 14, 2016
1 parent 00f224e commit f7536a3
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,6 @@ func MakeMeta(enc Encoder, options ...Option) Meta {
return m
}

// Level returns the minimum enabled log level, if simple monotonic level
// enabling is being used; otherwise it returns FatalLevel+1.
func (m Meta) Level() Level {
if lvl, ok := m.LevelEnabler.(Level); ok {
return lvl
}
return FatalLevel + 1
}

// SetLevel atomically alters the level enabler so that all logs of a given
// level and up are enabled.
func (m Meta) SetLevel(lvl Level) {
m.LevelEnabler = lvl
}

// Clone creates a copy of the meta struct. It deep-copies the encoder, but not
// the hooks (since they rarely change).
func (m Meta) Clone() Meta {
Expand Down

0 comments on commit f7536a3

Please sign in to comment.