Creates a log recorder that writes messages to output stream.
Logs messages as is when the stream is in [object mode], or formats them otherwise.
Reports logging complete immediately if to.write() returned true. Awaits for stream to [drain] otherwise.
to.write()
true
Ends underlying stream(s) on .end() method call.
Writable stream to log messages to.
A specification of how to log messages to Node.js stream.
New log recorder.
Generated using TypeDoc
Creates a log recorder that writes messages to output stream.
Logs messages as is when the stream is in [object mode], or formats them otherwise.
Reports logging complete immediately if
to.write()
returnedtrue
. Awaits for stream to [drain] otherwise.Ends underlying stream(s) on .end() method call.