mirror of https://github.com/sirupsen/logrus.git
commit
66afa87e45
|
@ -30,6 +30,11 @@ func SetLevel(level Level) {
|
||||||
std.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.
|
// AddHook adds a hook to the standard logger hooks.
|
||||||
func AddHook(hook Hook) {
|
func AddHook(hook Hook) {
|
||||||
std.mu.Lock()
|
std.mu.Lock()
|
||||||
|
|
Loading…
Reference in New Issue