Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/op/go-logging
/ getFormatterAndCacheCurrent
Method
getFormatterAndCacheCurrent
level.go:121–128 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
119
}
120
121
func
(l *moduleLeveled) getFormatterAndCacheCurrent() Formatter {
122
l.once.Do(
func
() {
123
if
l.formatter == nil {
124
l.formatter = getFormatter()
125
}
126
})
127
return
l.formatter
128
}
Callers
1
Log
Method · 0.95
Calls
1
getFormatter
Function · 0.85
Tested by
no test coverage detected