code: @Override
  	public synchronized void dump(boolean close)
  	{
  		if (logfile != null)
  		{
  			PrintWriter writer = null;
  
  			try
  			{
  				writer = new PrintWriter(new OutputStreamWriter(new FileOutputStream(logfile, true), "UTF-8"));
  			} catch (FileNotFoundException e)
  			{
  				e.printStackTrace();
  				return;
  			} catch (UnsupportedEncodingException e)
  			{
  				e.printStackTrace();
  				return;
  			}
  
  			for (RTMessage event : events)
  			{
  				writer.println(event.getMessage());
  			}
  
  			writer.flush();
  			events.clear();
  
  			writer.close();
  		}
  	}
docs: /*
  (non-Javadoc)
  @see org.overture.interpreter.messages.rtlog.IRTLogger#dump(boolean)