W4dLogger

A logger used in w4d library.

Constructors

this
this()

Destructor

~this
~this()
Undocumented in source.

Members

Functions

error
void error(Args args)

Makes new error log.

fatal
void fatal(Args args)

Makes new fatal log.

formatLog
string formatLog(LogLevel lv, string text, string file, size_t line, string func)
Undocumented in source. Be warned that the author may not have intended to support it.
info
void info(Args args)

Makes new info log.

setOutputFile
void setOutputFile(File f, bool colored)

Changes output file. Specify stdout to output to the terminal. When colored is true, logs will be colored for the terminal.

setThreshold
void setThreshold(LogLevel out_, LogLevel throw_)

Changes threshold levels for handling logs.

trace
void trace(Args args)

Makes new trace log.

warn
void warn(Args args)

Makes new warning log.

writeLog
void writeLog(LogLevel lv, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

instance
instance [@property getter]

An unique instance of W4dLogger.

Static variables

_instance
W4dLogger _instance;
Undocumented in source.

Variables

_colored
bool _colored;
Undocumented in source.
_output
File _output;
Undocumented in source.
_outputThreshold
LogLevel _outputThreshold;
Undocumented in source.
_throwThreshold
LogLevel _throwThreshold;
Undocumented in source.

Meta