public void close(){
  if (fileOutput != null) {
    try {
      dataOutput.close();
    }
 catch (    IOException e) {
      logger.warn("Unable to close log file writer: file=" + file.getName() + " exception="+ e.getMessage());
    }
    fileOutput=null;
    bufferedOutput=null;
    dataOutput=null;
  }
}

public void close ( ) { if ( fileOutput != null ) { try { dataOutput . close ( ) ; } catch ( IOException e ) { logger . warn ( "Unable to close log file writer: file=" + file . getName ( ) + " exception=" + e . getMessage ( ) ) ; } fileOutput = null ; bufferedOutput = null ; dataOutput = null ; } }
close and release all resources .
