MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / WithLevel

Function WithLevel

pkg/log/options.go:21–27  ·  view source on GitHub ↗

WithLevel sets the level on the logger.

(level Level)

Source from the content-addressed store, hash-verified

19
20// WithLevel sets the level on the logger.
21func WithLevel(level Level) Option {
22 return func(logger *Logger) {
23 if level != invalid {
24 logger.Level = level
25 }
26 }
27}

Callers 4

GetLoggerFunction · 0.92
initFunction · 0.92
InitializeLoggerFunction · 0.92
ExampleMiddlewareFunction · 0.85

Calls

no outgoing calls

Tested by 2

initFunction · 0.74
ExampleMiddlewareFunction · 0.68