Code example for Logger

Methods: entering, info, severe

0
    } 
 
    public void read() 
            throws IOException, ParserConfigurationException, SAXException 
    { 
        logger.entering(getClass().getName(), "read", stedSettingsFile);
        final SAXParserFactory saxParserFactory =
                SAXParserFactory.newInstance();
        saxParserFactory.setValidating(true);
        final SAXParser saxParser = saxParserFactory.newSAXParser();
        logger.info("reading settings file - " +
                stedSettingsFile.getAbsolutePath());
        final InputStream inputStream =
                FileHelper.getInputStream(stedSettingsFile);
        if (inputStream == null)
        { 
            logger.severe(
                    "InputStream NULL - Cannot Read File: " + stedSettingsFile);
            throw new IOException(
                    "InputStream NULL - Cannot Read File: " + stedSettingsFile);
        } 
        else