MCPcopy
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
121func (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

LogMethod · 0.95

Calls 1

getFormatterFunction · 0.85

Tested by

no test coverage detected