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

Enums

Verbosity
enum Verbosity

how verbose the messages are

Functions

crit
void crit(string log)

writes a message at CRITICAL 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 WARNING 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