org.jwall.web.audit.io
Class ModSecurity2AuditWriter
java.lang.Object
org.jwall.web.audit.io.ModSecurity2AuditWriter
- All Implemented Interfaces:
- AuditEventWriter
public class ModSecurity2AuditWriter
- extends 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>
ModSecurity2AuditWriter
public ModSecurity2AuditWriter(File file)
throws IOException
- Throws:
IOException
writeEvent
public void writeEvent(AuditEvent evt)
throws 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:
IOException - In case an IO-error occurs.
close
public void close()
Copyright © 2012 jwall.org. All Rights Reserved.