MCPcopy
hub / github.com/op/go-logging / SetLevel

Function SetLevel

backend.go:32–34  ·  view source on GitHub ↗

SetLevel sets the logging level for the specified module. The module corresponds to the string specified in GetLogger.

(level Level, module string)

Source from the content-addressed store, hash-verified

30// SetLevel sets the logging level for the specified module. The module
31// corresponds to the string specified in GetLogger.
32func SetLevel(level Level, module string) {
33 defaultBackend.SetLevel(level, module)
34}
35
36// GetLevel returns the logging level for the specified module.
37func GetLevel(module string) Level {

Callers

nothing calls this directly

Calls 1

SetLevelMethod · 0.65

Tested by

no test coverage detected