feat(LogLevel): taking in account code review from David Bariod

This commit is contained in:
Logan HAUSPIE
2018-08-26 23:51:09 +02:00
parent 0ab534bf6c
commit 90bf2e7f39
5 changed files with 87 additions and 147 deletions
+3 -22
View File
@@ -34,28 +34,9 @@ func GetLevel() Level {
return std.GetLevel()
}
func IsDebugEnabled() bool {
return std.IsDebugEnabled()
}
func IsInfoEnabled() bool {
return std.IsInfoEnabled()
}
func IsWarnEnabled() bool {
return std.IsWarnEnabled()
}
func IsErrorEnabled() bool {
return std.IsErrorEnabled()
}
func IsFatalEnabled() bool {
return std.IsFatalEnabled()
}
func IsPanicEnabled() bool {
return std.IsPanicEnabled()
// IsLevelEnabled checks if the log level of the standard logger is greater than the level param
func IsLevelEnabled(level Level) bool {
return std.IsLevelEnabled(level)
}
// AddHook adds a hook to the standard logger hooks.