MCPcopy
hub / github.com/netdata/netdata / logArgs

Method logArgs

src/go/logger/conditional.go:69–74  ·  view source on GitHub ↗
(level slog.Level, a ...any)

Source from the content-addressed store, hash-verified

67}
68
69func (c ConditionalLogger) logArgs(level slog.Level, a ...any) ElseBranch {
70 if c.cond && c.l.canLog(level) {
71 c.l.log(level, fmt.Sprint(a...))
72 }
73 return c.next()
74}
75
76func (c ConditionalLogger) logf(level slog.Level, format string, a ...any) ElseBranch {
77 if c.cond && c.l.canLog(level) {

Callers 5

ErrorMethod · 0.95
WarningMethod · 0.95
NoticeMethod · 0.95
InfoMethod · 0.95
DebugMethod · 0.95

Calls 3

nextMethod · 0.95
canLogMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected