From 0e14256e0f345c13920d2a914fdf2e3f770c5a88 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 10 Feb 2017 20:31:41 +0000 Subject: [PATCH] Add log level constants to package --- log/log.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/log/log.go b/log/log.go index 8ab59027..df3760a8 100644 --- a/log/log.go +++ b/log/log.go @@ -21,6 +21,15 @@ import ( "github.com/sirupsen/logrus" ) +const ( + PanicLevel = logrus.PanicLevel + FatalLevel = logrus.FatalLevel + ErrorLevel = logrus.ErrorLevel + WarnLevel = logrus.WarnLevel + InfoLevel = logrus.InfoLevel + DebugLevel = logrus.DebugLevel +) + var log *Logger // Logger ...