From c64b18f6882f5308ba2e3bb2e583e2f0c20dbd85 Mon Sep 17 00:00:00 2001 From: Doug Davis Date: Wed, 12 Nov 2014 07:40:34 -0500 Subject: [PATCH] add GetLevel support Signed-off-by: Doug Davis --- exported.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exported.go b/exported.go index 0e2d59f..d087124 100644 --- a/exported.go +++ b/exported.go @@ -30,6 +30,11 @@ func SetLevel(level Level) { std.Level = level } +// GetLevel returns the standard logger level. +func GetLevel() Level { + return std.Level +} + // AddHook adds a hook to the standard logger hooks. func AddHook(hook Hook) { std.mu.Lock()