Hi there.

Quick question: is there a way to remove all existing JUL handlers and install the SLF4JBridgeHandler, all via a configuration file such as logback.xml, etc.?

Currently I do the following programmatically, but I would like to be able to do this via a configuration file instead:


        // Remove any existing handlers from JUL's root logger.
        java.util.logging.Logger julLogger =
                java.util.logging.Logger.getLogger(JUL_ROOT_LOGGER_NAME);
        Handler[] julHandlerArray = julLogger.getHandlers();
        for ( Handler julHandler : julHandlerArray )  {
                julLogger.removeHandler(julHandler);
        }

        // Install the JUL to SLF4J bridge handler.
        SLF4JBridgeHandler.install();


Any input would be greatly appreciated.

Thank you very much.

--
Andrzej Zadorozny