mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user