code: public synchronized static void clearHandlers() {
        java.util.logging.Logger root = java.util.logging.LogManager.getLogManager().getLogger(StringUtils.EMPTY);
        Handler[] handlers = root.getHandlers();
        for (Handler h : handlers) {
           root.removeHandler(h);
        }
     }
docs: Clears all handlers from the logger