Adds first version of Assay's materialization in a JSON format

That format will be used by the audit logs.
This commit is contained in:
Felipe Zimmerle
2015-07-08 19:22:43 -03:00
parent 610b10bcd5
commit aa8dc9115b
8 changed files with 145 additions and 15 deletions

View File

@@ -28,6 +28,14 @@ std::string AuditLogWriter::file_name(const std::string& unique_id) {
/** TODO: return file with time stamp and etc. */
return std::string("/tmp/temp_audit_log_file.txt");
}
/**
*
* Temporary print the log into the std::cout to debug purposes.
*
*/
bool AuditLogWriter::write(const std::string& log) {
std::cout << log << std::endl;
return true;
}
} // namespace ModSecurity