MCPcopy Create free account
hub / github.com/foxcpp/maddy / output

Method output

framework/log/log.go:226–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224}
225
226func (l *Logger) output() Output {
227 if l.Out != nil {
228 return l.Out
229 }
230 if l.Parent != nil {
231 return l.Parent.output()
232 }
233
234 if DefaultLogger.Out == nil {
235 panic("DefaultLogger.Out is not set")
236 }
237 if l.Parent == nil && l != &DefaultLogger {
238 DefaultLogger.Out.Write(time.Now(), true, "logger "+l.Name+" has no parent, this is a bug")
239 }
240 return DefaultLogger.Out
241}
242
243func (l *Logger) log(debug bool, s string) {
244 if l.Name != "" {

Callers 1

logMethod · 0.95

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected