public final void doConfigure ( InputStream inputStream ) throws JoranException { try { doConfigure ( new InputSource ( inputStream ) ) ; } finally { try { inputStream . close ( ) ; } catch ( IOException ioe ) { String errMsg = "Could not close the stream" ; addError ( errMsg , ioe ) ; throw new JoranException ( errMsg , ioe ) ; } } }
Configures logback with the configuraiton XML read from an input stream and then closes the stream