Logger

A logger

Constructors

this
this(bool logToFile, string logFile)

Creates a new logger

Destructor

~this
~this()

Closes the logger and its attachment to the log file

Members

Functions

error
void error(string sender, string text, T fmt)

Writes error to stderr

fatal
void fatal(string sender, string text, T fmt)

Writes a fatal error to stderr and quits the application with status -1

info
void info(string sender, string text, T fmt)

Write info log to stdout

warn
void warn(string sender, string text, T fmt)

Write warning log to stdout

Variables

logToFile
bool logToFile;

Whether to write logs to file

Meta