MCPcopy Index your code
hub / github.com/netdata/netdata / logf

Method logf

src/go/logger/conditional.go:76–81  ·  view source on GitHub ↗
(level slog.Level, format string, a ...any)

Source from the content-addressed store, hash-verified

74}
75
76func (c ConditionalLogger) logf(level slog.Level, format string, a ...any) ElseBranch {
77 if c.cond && c.l.canLog(level) {
78 c.l.log(level, fmt.Sprintf(format, a...))
79 }
80 return c.next()
81}
82
83func (c ConditionalLogger) next() ElseBranch {
84 cond := false

Callers 5

ErrorfMethod · 0.95
WarningfMethod · 0.95
NoticefMethod · 0.95
InfofMethod · 0.95
DebugfMethod · 0.95

Calls 3

nextMethod · 0.95
canLogMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected