if (getInternalLogger().isLoggable(Level.FINEST)) { allHandler = logger.getHandlers(); getInternalLogger().log(Level.FINEST, "logger handler after remove count[{0}]", new Integer(allHandler.length)); }
    public static void removeAllHandlers(final Logger logger) {        Handler[] allHandler = logger.getHandlers();        getInternalLogger().log(Level.FINEST, "logger handler count[{0}]", new Integer(allHandler.length));        for (int i = 0; i < allHandler.length; i++) {            Handler handler = allHandler[i];            logger.removeHandler(handler);        }        if (getInternalLogger().isLoggable(Level.FINEST)) {            allHandler = logger.getHandlers();            getInternalLogger().log(Level.FINEST, "logger handler after remove count[{0}]",                    new Integer(allHandler.length));        }    }