MCPcopy
hub / github.com/sirupsen/logrus / IsLevelEnabled

Function IsLevelEnabled

exported.go:45–47  ·  exported.go::IsLevelEnabled

IsLevelEnabled checks if the log level of the standard logger is greater than the level param

(level Level)

Source from the content-addressed store, hash-verified

43
44// IsLevelEnabled checks if the log level of the standard logger is greater than the level param
45func IsLevelEnabled(level Level) bool {
46 return std.IsLevelEnabled(level)
47}
48
49// AddHook adds a hook to the standard logger hooks.
50func AddHook(hook Hook) {

Callers

nothing calls this directly

Calls 1

IsLevelEnabledMethod · 0.80

Tested by

no test coverage detected