flushLog

Writes a single log buffer to disk.

This is a way of queuing writes so that they can be flushed seldom and in bulk, supposedly being nicer to the hardware at the cost of the risk of losing unflushed lines in a catastrophical crash.

version(WithPrinterPlugin)
package
void
flushLog

Parameters

plugin PrinterPlugin

The current PrinterPlugin.

buffer LogLineBuffer

LogLineBuffer whose lines to flush to disk.

See Also