From 8e98081204c27711c285f14ece3575678d9c4c97 Mon Sep 17 00:00:00 2001 From: Oleg Balunenko Date: Wed, 8 Jun 2022 19:40:35 +0300 Subject: [PATCH] doc: Add comments --- level.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/level.go b/level.go index 5f2171dd..ed110c50 100644 --- a/level.go +++ b/level.go @@ -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 }