Logger

a utility class for displaying diagnostic messages

Constructors

this
this(Verbosity verbosity)

initialize a logger with a given verbosity

Members

Classes

ConsoleSink
class ConsoleSink

a sink that outputs to the console

FileSink
class FileSink

a sink that outputs to a file

Functions

crit
void crit(string log)

writes a message at crit verbosity

err
void err(string log)

writes a message at error verbosity

info
void info(string log)

writes a message at INFO verbosity

trace
void trace(string log)

writes a message at trace verbosity

warn
void warn(string log)

writes a message at warn verbosity

write_line
void write_line(string log, Verbosity level)

writes a message

Interfaces

ILogSink
interface ILogSink

a sink that accepts log messages

Variables

sinks
ILogSink[] sinks;

message output targets

verbosity
Verbosity verbosity;

maximum message verbosity

Meta