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

Function WriterOutput

framework/log/writer.go:93–95  ·  view source on GitHub ↗

WriterOutput returns a log.Output implementation that will write formatted messages to the provided io.Writer. Closing returned log.Output object will have no effect on the underlying io.Writer. Written messages will include timestamp formatted with millisecond precision and [debug] prefix for deb

(w io.Writer, timestamps bool)

Source from the content-addressed store, hash-verified

91// systems have atomic (read: thread-safe) implementations for
92// stream I/O, so it should be safe to use WriterOutput with os.File.
93func WriterOutput(w io.Writer, timestamps bool) Output {
94 return wcOutput{timestamps, nopCloser{os.Stderr}}
95}

Callers 3

LogOutputOptionFunction · 0.92
LoggerFunction · 0.92
log.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected