static List < PatternLevel > readLevelResourceFile ( InputStream stream ) { List < PatternLevel > levels = null ; if ( stream != null ) { try { levels = configureClassLevels ( stream ) ; } catch ( IOException e ) { System . err . println ( "IO exception reading the log properties file '" + LOCAL_LOG_PROPERTIES_FILE + "': " + e ) ; } finally { try { stream . close ( ) ; } catch ( IOException e ) { // ignore close exception } } } return levels ; }
Read in our levels from our configuration file .