Description
I add and remove dynamically appenders to loggers (Logger.addAppender)
But when removing an error occurs.
The reason is that the appenders are registered with the logger name in the list of appenders.
proposal for solution:
BaseConfiguration.java
public synchronized void addLoggerAppender(final org.apache.logging.log4j.core.Logger logger,
final Appender appender) {
final String name = logger.getName();
//appenders.putIfAbsent(name, appender); ==> it's the name of the logger
appenders.putIfAbsent(appender.getName(), appender);