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(A a)

writes a message at CRITICAL verbosity

err
void err(A a)

writes a message at ERROR verbosity

info
void info(A a)

writes a message at INFO verbosity

trace
void trace(A a)

writes a message at TRACE verbosity

warn
void warn(A a)

writes a message at WARNING verbosity

write_line
void write_line(Verbosity level, A a)

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