org.jwall.web.audit.io
Class ModSecurity2AuditWriter

java.lang.Object
  extended by org.jwall.web.audit.io.ModSecurity2AuditWriter
All Implemented Interfaces:
AuditEventWriter

public class ModSecurity2AuditWriter
extends java.lang.Object
implements AuditEventWriter

This simple writer creates an audit-log file in the format of the ModSecurity2 audit-log.

Author:
Christian Bockermann <chris@jwall.org>

Constructor Summary
ModSecurity2AuditWriter(java.io.File file)
           
 
Method Summary
 void writeEvent(AuditEvent evt)
          Simply append an audit-event entry to the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModSecurity2AuditWriter

public ModSecurity2AuditWriter(java.io.File file)
                        throws java.io.IOException
Throws:
java.io.IOException
Method Detail

writeEvent

public void writeEvent(AuditEvent evt)
                throws java.io.IOException
Simply append an audit-event entry to the file.

Specified by:
writeEvent in interface AuditEventWriter
Parameters:
evt - The audit-event to be written.
Throws:
java.io.IOException - In case an IO-error occurs.