This Element is stored inside the MultiLogger
and associates a Logger
to a string
.
The name if the Logger
The stored Logger
MultiLogger logs to multiple Logger
. The Logger
s are stored in an Logger[]
in their order of insertion.
Every data logged to this MultiLogger
will be distributed to all the Logger
s inserted into it. This MultiLogger
implementation can hold multiple Logger
s with the same name. If the method removeLogger
is used to remove a Logger
only the first occurrence with that name will be removed.
A constructor for the MultiLogger
Logger.
LogLevel lv
| The LogLevel for the MultiLogger . By default the LogLevel for MultiLogger is LogLevel.all . |
auto l1 = new MultiLogger(LogLevel.trace);
This member holds all Logger
s stored in the MultiLogger
.
When inheriting from MultiLogger
this member can be used to gain access to the stored Logger
.
This method inserts a new Logger into the MultiLogger
.
string name
| The name of the Logger to insert. |
Logger newLogger
| The Logger to insert. |
This method removes a Logger from the MultiLogger
.
char[] toRemove
| The name of the Logger to remove. If the Logger is not found null will be returned. Only the first occurrence of a Logger with the given name will be removed. |
Logger
.
© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/std_experimental_logger_multilogger.html