logback-android/src/main/java/ch/qos/logback/core/joran/GenericConfigurator.java
public final void doConfigure(File file) throws JoranException {
    FileInputStream fis = null;
    try {
      URL url = file.toURI().toURL();
      informContextOfURLUsedForConfiguration(getContext(), url);
      fis = new FileInputStream(file);

      // this closes the stream for us
      doConfigure(fis, url.toExternalForm());
    } catch (IOException ioe) {
      String errMsg = "Could not open [" + file.getPath() + "].";
      addError(errMsg, ioe);
      throw new JoranException(errMsg, ioe);
    } finally {
      CloseUtil.closeQuietly(fis);
    }
  }
public final void doConfigure(File file) throws JoranException {
    FileInputStream fis = null;
    try {
      URL url = file.toURI().toURL();
      informContextOfURLUsedForConfiguration(getContext(), url);
      fis = new FileInputStream(file);

      // this closes the stream for us
      doConfigure(fis, url.toExternalForm());
    } catch (IOException ioe) {
      String errMsg = "Could not open [" + file.getPath() + "].";
      addError(errMsg, ioe);
      throw new JoranException(errMsg, ioe);
    } finally {
      CloseUtil.closeQuietly(fis);
    }
  }
public final void doConfigure ( File file ) throws JoranException { FileInputStream fis = null ; try { URL url = file . toURI ( ) . toURL ( ) ; informContextOfURLUsedForConfiguration ( getContext ( ) , url ) ; fis = new FileInputStream ( file ) ; // this closes the stream for us doConfigure ( fis , url . toExternalForm ( ) ) ; } catch ( IOException ioe ) { String errMsg = "Could not open [" + file . getPath ( ) + "]." ; addError ( errMsg , ioe ) ; throw new JoranException ( errMsg , ioe ) ; } finally { CloseUtil . closeQuietly ( fis ) ; } }
Configures logback with the configuration XML read from a given file

@param file the file, containing the configuration XML
@throws JoranException configuration error occurred
Configures logback with the configuration XML read from a given file