Code example for Logger

Methods: isLoggable, log

0
            throws SAXException { 
            //do nothing 
        } 
    } 
    static List exception(Exception e) {
        if (LOGGER.isLoggable(Level.FINE)) {
            LOGGER.log(Level.FINE, "Validation error", e);
        } 
        return Arrays.asList(new SAXParseException(e.getLocalizedMessage(), null));
    } 
}