MCPcopy
hub / github.com/netdata/netdata / canLog

Method canLog

src/go/logger/logger.go:144–152  ·  view source on GitHub ↗
(level slog.Level)

Source from the content-addressed store, hash-verified

142}
143
144func (l *Logger) canLog(level slog.Level) bool {
145 if !Level.Enabled(level) {
146 return false
147 }
148 if l.isNil() {
149 return true
150 }
151 return !l.muted.Load()
152}
153
154func (l *Logger) mute(v bool) {
155 if l.isNil() || isTerm && Level.Enabled(slog.LevelDebug) {

Callers 14

ErrorMethod · 0.95
WarningMethod · 0.95
NoticeMethod · 0.95
InfoMethod · 0.95
DebugMethod · 0.95
ErrorfMethod · 0.95
WarningfMethod · 0.95
NoticefMethod · 0.95
InfofMethod · 0.95
DebugfMethod · 0.95
logArgsMethod · 0.80
logfMethod · 0.80

Implementers 7

ProtocolClientsrc/go/plugin/ibm.d/framework/protocol
CollectorStatesrc/go/plugin/ibm.d/framework/types.go
nopLoggersrc/go/plugin/ibm.d/protocols/webspher
testLoggersrc/go/plugin/ibm.d/protocols/jmxbridg
Loggersrc/go/logger/logger.go
ConditionalLoggersrc/go/logger/conditional.go
LimitedLoggersrc/go/logger/ratelimit.go

Calls 3

isNilMethod · 0.95
EnabledMethod · 0.65
LoadMethod · 0.65

Tested by

no test coverage detected