MCPcopy Index your code
hub / github.com/foxcpp/maddy / Write

Method Write

framework/log/log.go:200–206  ·  view source on GitHub ↗

Write implements io.Writer, all bytes sent to it will be written as a separate log messages. No line-buffering is done.

(s []byte)

Source from the content-addressed store, hash-verified

198// to it will be written as a separate log messages.
199// No line-buffering is done.
200func (l *Logger) Write(s []byte) (int, error) {
201 if !l.IsDebug() {
202 return len(s), nil
203 }
204 l.log(false, strings.TrimRight(string(s), "\n"))
205 return len(s), nil
206}
207
208// Close closes underlying output in Out.
209func (l *Logger) Close() error {

Callers

nothing calls this directly

Calls 2

IsDebugMethod · 0.95
logMethod · 0.95

Tested by

no test coverage detected