MCPcopy Create free account
hub / github.com/op/go-logging / SetLevel

Method SetLevel

level.go:103–105  ·  view source on GitHub ↗

SetLevel sets the log level for the given module.

(level Level, module string)

Source from the content-addressed store, hash-verified

101
102// SetLevel sets the log level for the given module.
103func (l *moduleLeveled) SetLevel(level Level, module string) {
104 l.levels[module] = level
105}
106
107// IsEnabledFor will return true if logging is enabled for the given module.
108func (l *moduleLeveled) IsEnabledFor(level Level, module string) bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected