add GetLevel support

Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
Doug Davis 2014-11-12 07:40:34 -05:00
parent f92b7950b3
commit c64b18f688
1 changed files with 5 additions and 0 deletions

View File

@ -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()