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)
| 91 | // systems have atomic (read: thread-safe) implementations for |
| 92 | // stream I/O, so it should be safe to use WriterOutput with os.File. |
| 93 | func WriterOutput(w io.Writer, timestamps bool) Output { |
| 94 | return wcOutput{timestamps, nopCloser{os.Stderr}} |
| 95 | } |
no outgoing calls
no test coverage detected