Logger

Logger used one for each thread

Members

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
error
void error(string text)
Undocumented in source. Be warned that the author may not have intended to support it.
error
void error(string fmt, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
fatal
void fatal(string text)
Undocumented in source. Be warned that the author may not have intended to support it.
fatal
void fatal(string fmt, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
isLoggerServiceRegistered
bool isLoggerServiceRegistered()
isLoggerSubRegistered
bool isLoggerSubRegistered()
Undocumented in source. Be warned that the author may not have intended to support it.
opCall
void opCall(Topic topic, string identifier, const(Document) data)
Undocumented in source. Be warned that the author may not have intended to support it.
opCall
void opCall(Topic topic, string identifier, T data)
Undocumented in source. Be warned that the author may not have intended to support it.
opCall
void opCall(Topic topic, string identifier)
Undocumented in source. Be warned that the author may not have intended to support it.
opCall
void opCall(Topic topic, string identifier, T data)
Undocumented in source. Be warned that the author may not have intended to support it.
opCall
void opCall(string text)

logs the text to in INFO level

opCall
void opCall(string fmt, Args args)

logs the fmt text in INFO level

opCall
void opCall(const(Throwable) t)
Undocumented in source. Be warned that the author may not have intended to support it.
pop
uint pop()

Pops the current logger mask

push
void push(uint mask)

Push the current logger mask to the mask stack

registerSubscriptionTask
void registerSubscriptionTask(string task_name)
Undocumented in source. Be warned that the author may not have intended to support it.
report
void report(LogLevel level, string text)

Reports the text to the logger with the level LogLevel

report
void report(Topic topic, string identifier, const(Document) data)

Conditional subscription logging

report
void report(LogLevel level, string fmt, Args args)

formatted logger

set_logger_task
void set_logger_task(string logger_task_name)

Sets the task name of the logger for the whole program Note should be set in the logger task when the logger task is ready and has been started correctly

trace
void trace(string text)
Undocumented in source. Be warned that the author may not have intended to support it.
trace
void trace(string fmt, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
warn
void warn(string text)
Undocumented in source. Be warned that the author may not have intended to support it.
warn
void warn(string fmt, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

task_name
string task_name [@property getter]

Get task_name

task_name
string task_name [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

logger_subscription_tid
Tid logger_subscription_tid;
Undocumented in source.
logger_task_name
string logger_task_name;

Logger task name

Variables

_task_name
string _task_name;

The name of the task using the logger

masks
uint[] masks;

Logger mask stack

silent
bool silent;

If true the log is silened (no logs is process from any tasks)

Meta