Writes audit log in parallel mode

First version still missing the index among other things
This commit is contained in:
Felipe Zimmerle
2015-07-10 15:23:15 -03:00
parent 693238b235
commit c9620ac50f
13 changed files with 164 additions and 30 deletions

View File

@@ -23,6 +23,7 @@
#define SRC_AUDIT_LOG_WRITER_SERIAL_H_
#include "src/audit_log_writer.h"
#include "modsecurity/assay.h"
#ifdef __cplusplus
@@ -31,11 +32,12 @@ namespace ModSecurity {
/** @ingroup ModSecurity_CPP_API */
class AuditLogWriterSerial : public AuditLogWriter {
public:
AuditLogWriterSerial() { }
explicit AuditLogWriterSerial(AuditLog *audit)
: AuditLogWriter(audit) { }
bool init() override;
bool close() override;
bool write(const std::string& log) override;
bool write(Assay *assay) override;
};
} // namespace ModSecurity