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:
Felipe Zimmerle
2015-07-03 13:28:14 -03:00
parent 7ea9ff8836
commit 616a2ae6de
9 changed files with 335 additions and 9 deletions

View File

@@ -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;