FileLogger

Plain-text based logger for logging to regular files or stdout/stderr

Constructors

this
this(File info_file, File diag_file)
Undocumented in source.
this
this(string filename)
Undocumented in source.

Members

Enums

Format
enum Format

The log format used by the FileLogger

Functions

beginLine
void beginLine(LogLine msg)
Undocumented in source. Be warned that the author may not have intended to support it.
endLine
void endLine()
Undocumented in source. Be warned that the author may not have intended to support it.
put
void put(const(char)[] text)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

format
Format format;
Undocumented in source.
infoFormat
Format infoFormat;
Undocumented in source.
useColors
bool useColors;

Use escape sequences to color log output.

Inherited Members

From Logger

minLevel
LogLevel minLevel;
Undocumented in source.
multilineLogger
bool multilineLogger;

Whether the logger can handle multiple lines in a single beginLine/endLine.

acceptsLevel
bool acceptsLevel(LogLevel value)
Undocumented in source. Be warned that the author may not have intended to support it.
log
void log(LogLine line)

Legacy logging interface relying on dynamic memory allocation.

beginLine
void beginLine(LogLine line_info)

Starts a new log line.

put
void put(const(char)[] text)

Writes part of a log line message.

endLine
void endLine()

Finalizes a log line.

Meta