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

Method log

framework/log/log.go:243–252  ·  view source on GitHub ↗
(debug bool, s string)

Source from the content-addressed store, hash-verified

241}
242
243func (l *Logger) log(debug bool, s string) {
244 if l.Name != "" {
245 s = l.Name + ": " + s
246 }
247
248 out := l.output()
249 out.Write(time.Now(), debug, s)
250
251 // Logging is disabled - do nothing.
252}
253
254func (l *Logger) Sublogger(name string) *Logger {
255 if l.Name != "" && name != "" {

Callers 9

DebugfMethod · 0.95
DebuglnMethod · 0.95
PrintfMethod · 0.95
PrintlnMethod · 0.95
MsgMethod · 0.95
ErrorMethod · 0.95
DebugMsgMethod · 0.95
WriteMethod · 0.95
WriteMethod · 0.45

Calls 2

outputMethod · 0.95
WriteMethod · 0.65

Tested by

no test coverage detected