LogLineBuffer

A struct containing lines to write to a log file when next committing such.

This is only relevant if PrinterSettings.bufferedWrites

is set.

As a micro-optimisation an Appender is used to store the lines, instead of a normal string[].

Constructors

this
this(string dir, SysTime now)

Constructor taking a SysTime, to save as the date the buffer was created.

this
this(string dir, string filename)

Constructor not taking a SysTime, for use with buffers that should not be dated, such as the error log and the raw log.

Members

Variables

dir
string dir;

Basename directory this buffer will be saved to.

file
string file;

Fully qualified filename this buffer will be saved to.

lines
Appender!(string[]) lines;

Buffered lines that will be saved to file, in dir.

Meta