(level Level, calldepth int, rec *Record)
| 110 | } |
| 111 | |
| 112 | func (l *moduleLeveled) Log(level Level, calldepth int, rec *Record) (err error) { |
| 113 | if l.IsEnabledFor(level, rec.Module) { |
| 114 | // TODO get rid of traces of formatter here. BackendFormatter should be used. |
| 115 | rec.formatter = l.getFormatterAndCacheCurrent() |
| 116 | err = l.backend.Log(level, calldepth+1, rec) |
| 117 | } |
| 118 | return |
| 119 | } |
| 120 | |
| 121 | func (l *moduleLeveled) getFormatterAndCacheCurrent() Formatter { |
| 122 | l.once.Do(func() { |
nothing calls this directly
no test coverage detected