commitLog

Writes a single log buffer to disk.

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

version(WithPrinterPlugin)
package
void
commitLog

Parameters

plugin PrinterPlugin

The current PrinterPlugin.

buffer LogLineBuffer

LogLineBuffer whose lines to commit to disk.

See Also

Meta