Skip to content

Commit

Permalink
doc: Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
obalunenko committed Jun 8, 2022
1 parent e35a84b commit 8e98081
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions level.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import (
"github.com/sirupsen/logrus"
)

// Level type.
type Level struct {
logrus.Level
}

// IsDebug checks if level is in debug range.
func (l Level) IsDebug() bool {
return l.Level >= logrus.DebugLevel
}

0 comments on commit 8e98081

Please sign in to comment.