question: public void openForWrite ( ) throws EventException { File f = new File ( ConfigUtils . getInitialPropertyExpanded ( m_address . getPathname ( ) ) ) ; try { if ( ! f . exists ( ) ) { f . createNewFile ( ) ; } else { LOGGER . info ( "appending to file=" + m_address . getPathname ( ) ) ; } } catch ( IOException ioe ) { throw new EventException ( "failed to create file=" + m_address . getPathname ( ) + ", e=" + ioe ) ; } try { m_fos = new FileOutputStream ( f , true ) ; } catch ( FileNotFoundException fnfe ) { throw new EventException ( "failed to open file=" + m_address . getPathname ( ) + ", e=" + fnfe ) ; } }
target:  open the file with appending mode. if the file exists already, a warning log is issued. if failed to create or open the file, a error log is issued.