Logger

Logger used one for each thread

Members

Functions

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

Conditional subscription logging

isLoggerServiceRegistered
bool isLoggerServiceRegistered()
opCall
void opCall(string fmt, Args args)

logs the fmt text in INFO level

opCall
void opCall(string text)

logs the text to in INFO level

pop
uint pop()

Pops the current logger mask

push
void push(uint mask)

Push the current logger mask to the mask stack

report
void report(LogLevel level, string text)

Reports the text to the logger with the level LogLevel

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

Properties

task_name
string task_name [@property getter]

Get task_name

Static variables

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)