Drains buffered messages to target log recorder.
Messages are drained one at a time. The next message is recorded to target only when the previous one either logged or discarded.
Calling this method again changes the target.
Target log recorder to drain buffered messages to, or null
/undefined
to stop draining.
Optional
atOnce: numberThe maximum number of buffered messages to drain at once. 32
by default.
Records a log message.
The actual logging of the message can be asynchronous.
A message to record.
Awaits for the recorded message(s) to be either logged or discarded.
Optional
which: "all" | "last"Which message to wait for. Either "all"
to wait for all messages or "last"
to wait for the last
message only. The default is "last"
A promise resolved to true
if the last recorded message is logged, or to false
if it is discarded.
Generated using TypeDoc
Log buffer.
A log recorder that buffers messages and is able to drain them to another recorder.
The buffered messages are not