Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/netdata/netdata
/ Else
Method
Else
src/go/logger/conditional.go:25–27 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
23
}
24
25
func
(b ElseBranch) Else() ConditionalLogger {
26
return
ConditionalLogger{l: b.l, cond: b.cond}
27
}
28
29
func
(c ConditionalLogger) Error(a ...any) ElseBranch {
30
return
c.logArgs(slog.LevelError, a...)
Callers
4
TestWhenElseLogsOnlyChosenBranch
Function · 0.80
TestWhenElseSkipsFormattingOnSuppressedBranch
Function · 0.80
TestWhenNilLoggerDoesNotPanic
Function · 0.80
TestNew
Function · 0.80
Calls
no outgoing calls
Tested by
4
TestWhenElseLogsOnlyChosenBranch
Function · 0.64
TestWhenElseSkipsFormattingOnSuppressedBranch
Function · 0.64
TestWhenNilLoggerDoesNotPanic
Function · 0.64
TestNew
Function · 0.64