for (Handler handler : logger.getHandlers()) {
logger.removeHandler(handler);
}
// route all logging from java.util.Logging to log4net
final Handler handler = new JuliToLog4jHandler();
handler.setLevel(Level.ALL);
java.util.logging.Logger.getLogger(l).addHandler(handler);
}
} else {
// turn off all logging for jersey
for (String l : Collections.list(LogManager.getLogManager().getLoggerNames())) {