std.logger.multilogger

Types 2

This Element is stored inside the MultiLogger and associates a Logger to a string.

Fields
string name
Logger logger

MultiLogger logs to multiple Logger. The Loggers are stored in an Logger[] in their order of insertion.

Every data logged to this MultiLogger will be distributed to all the Loggers inserted into it. This MultiLogger implementation can hold multiple Loggers with the same name. If the method removeLogger is used to remove a Logger only the first occurrence with that name will be removed.

Fields
MultiLoggerEntry[] loggerThis member holds all `Logger`s stored in the `MultiLogger`.
Methods
void insertLogger(string name, Logger newLogger) @safeThis method inserts a new Logger into the `MultiLogger`.
Logger removeLogger(in char[] toRemove) @safeThis method removes a Logger from the `MultiLogger`.
void writeLogMsg(ref LogEntry payload) @safe
Constructors
this(const LogLevel lv = LogLevel.all)A constructor for the `MultiLogger` Logger.