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

Method DebugWriter

framework/log/log.go:220–224  ·  view source on GitHub ↗

DebugWriter returns a writer that will act like Logger.Write but will use debug flag on messages. If Logger.Debug is false, Write method of returned object will be no-op.

()

Source from the content-addressed store, hash-verified

218// but will use debug flag on messages. If Logger.Debug is false,
219// Write method of returned object will be no-op.
220func (l *Logger) DebugWriter() io.Writer {
221 l2 := l.Sublogger("")
222 l2.Debug = true
223 return l2
224}
225
226func (l *Logger) output() Output {
227 if l.Out != nil {

Callers 2

ConfigureMethod · 0.80
setConfigMethod · 0.80

Calls 1

SubloggerMethod · 0.95

Tested by

no test coverage detected