mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Support to JSON stuff on serial logging
This commit is contained in:
committed by
Felipe Zimmerle
parent
2988c5bb07
commit
63bef3d142
@@ -129,6 +129,10 @@ bool AuditLog::setFilePath2(const std::basic_string<char>& path) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AuditLog::setFormat(AuditLogFormat fmt) {
|
||||
this->m_format = fmt;
|
||||
return true;
|
||||
}
|
||||
|
||||
int AuditLog::addParts(int parts, const std::string& new_parts) {
|
||||
PARTS_CONSTAINS('A', AAuditLogPart)
|
||||
@@ -349,6 +353,10 @@ bool AuditLog::merge(AuditLog *from, std::string *error) {
|
||||
m_parts = from->m_parts;
|
||||
}
|
||||
|
||||
if (from->m_format != NotSetAuditLogFormat) {
|
||||
m_format = from->m_format;
|
||||
}
|
||||
|
||||
return init(error);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user