MCPcopy Index your code
hub / github.com/op/go-logging / GetLevel

Method GetLevel

level.go:90–100  ·  view source on GitHub ↗

GetLevel returns the log level for the given module.

(module string)

Source from the content-addressed store, hash-verified

88
89// GetLevel returns the log level for the given module.
90func (l *moduleLeveled) GetLevel(module string) Level {
91 level, exists := l.levels[module]
92 if exists == false {
93 level, exists = l.levels[""]
94 // no configuration exists, default to debug
95 if exists == false {
96 level = DEBUG
97 }
98 }
99 return level
100}
101
102// SetLevel sets the log level for the given module.
103func (l *moduleLeveled) SetLevel(level Level, module string) {

Callers 1

IsEnabledForMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected