std.logger.multilogger
Source: std/logger/multilogger.d
struct MultiLoggerEntry
class MultiLogger
Types 2
structMultiLoggerEntry
This Element is stored inside the MultiLogger and associates a Logger to a string.
classMultiLogger : 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`.void writeLogMsg(ref LogEntry payload) @safe