Sourcestd/logger/multilogger.d
MultiLoggerEntry;name;logger;MultiLogger:std.logger.core.Logger;MultiLogger will be distributed to all theLoggers inserted into it. ThisMultiLogger implementation canhold multipleLoggers with the same name. If the methodremoveLoggeris used to remove aLogger only the first occurrence with that name willbe removed.lv = LogLevel.all);LogLevellv | TheLogLevel for theMultiLogger. By default theLogLevel forMultiLogger isLogLevel.all. |
Example
auto l1 =new MultiLogger(LogLevel.trace);
logger;insertLogger(stringname, LoggernewLogger);stringname | The name of theLogger to insert. |
LoggernewLogger | TheLogger to insert. |
removeLogger(in char[]toRemove);char[]toRemove | The name of theLogger to remove. If theLogger is not foundnull will be returned. Only the first occurrence of aLogger with the given name will be removed. |