synchronized ( this.events ) {
log = new WorkingMemoryLog(new ArrayList<LogEvent>( this.events ),
isPhreak ? "PHREAK" : "RETEOO");
clear();
}
writer.write( xstream.toXML( log ) + "\n" );
} catch ( final FileNotFoundException exc ) {
throw new RuntimeException( "Could not create the log file. Please make sure that directory that the log file should be placed in does exist." );
} catch ( final Throwable t ) {
logger.error("error", t);
} finally {