coreLogger.setAdditive(additive);
LoggerContext context = coreLogger.getContext();
BaseConfiguration configuration
= (BaseConfiguration) context.getConfiguration();
configuration.addAppender(appender);
//this line sort of resets the loggers
// context.updateLoggers(configuration);
// if (coreLogger.getParent() == null) {
for (LoggerConfig loggerConfig : configuration.getLoggers().values()) {
loggerConfig.addAppender(appender, level, filter);
// }
}
} catch (Exception e) {
throw Exceptions.runtime(e);