In short: I am trying to add a custom appender + logger for some package for example "org.test" However the root appenders (appender refs) are always added as well automatically.. so even if I have a root appender(s) with level INFO defined in the log4j2.xml, ones I add a logger with level DEBUG.. with a new appender (only 1) .. the 2 root appenders that I have defined in the XML automatically starts receiving this DEBUG messages as well.
Is it possible somehow to REMOVE this ROOT appends.. from my newly created logger ? newLoggerConfig.getAppenderRefs().clear(); doesn't work of course :) Thanks for the help, much appreciated.
