mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds AuditLog class
The properties related to the Audit Log were saved into the classes Rules and Dirver, now all those properties will be saved into the AuditLog class.
This commit is contained in:
@@ -159,8 +159,6 @@ int Rules::merge(Driver *from) {
|
||||
this->sec_audit_engine = from->sec_audit_engine;
|
||||
this->sec_request_body_access = from->sec_request_body_access;
|
||||
this->sec_response_body_access = from->sec_response_body_access;
|
||||
this->audit_log_path = from->audit_log_path;
|
||||
this->audit_log_parts = from->audit_log_parts;
|
||||
this->debug_log_path = from->debug_log_path;
|
||||
this->debug_level = from->debug_level;
|
||||
|
||||
@@ -170,6 +168,8 @@ int Rules::merge(Driver *from) {
|
||||
this->debug_log = new DebugLog();
|
||||
}
|
||||
|
||||
this->audit_log = from->audit_log;
|
||||
|
||||
this->debug_log->setDebugLevel(this->debug_level);
|
||||
this->debug_log->setOutputFile(this->debug_log_path);
|
||||
|
||||
@@ -194,8 +194,6 @@ int Rules::merge(Rules *from) {
|
||||
this->sec_audit_engine = from->sec_audit_engine;
|
||||
this->sec_request_body_access = from->sec_request_body_access;
|
||||
this->sec_response_body_access = from->sec_response_body_access;
|
||||
this->audit_log_path = from->audit_log_path;
|
||||
this->audit_log_parts = from->audit_log_parts;
|
||||
|
||||
this->debug_log = from->debug_log;
|
||||
|
||||
|
Reference in New Issue
Block a user