I'm using slf4j and log4j2 combination as logging framework in my application. To redirect logs of java.util.logging into slf4j, I'm using jul-to-slf4j. I also have to execute :
static {
LogManager.getLogManager().reset();
SLF4JBridgeHandler.install();
}
the above to register the handler to make this work and it is working fine. But I would like to avoid this static block if it possible to do the same handler register by using log4j2.xml file configuration. I spent much time to find the xml configuration but could not found it.