Added audit log header

This commit is contained in:
szedenik-adam
2025-08-04 17:09:49 +02:00
parent 0ac551b070
commit 2ee45de2fc
12 changed files with 6247 additions and 6102 deletions

View File

@@ -157,6 +157,7 @@ class AuditLog {
bool setFilePath1(const std::basic_string<char>& path);
bool setFilePath2(const std::basic_string<char>& path);
bool setStorageDir(const std::basic_string<char>& path);
bool setHeader(const std::basic_string<char>& header);
bool setFormat(AuditLogFormat fmt);
int getDirectoryPermission() const;
@@ -185,6 +186,7 @@ class AuditLog {
std::string m_path1;
std::string m_path2;
std::string m_storage_dir;
std::string m_header;
AuditLogFormat m_format;

View File

@@ -411,7 +411,7 @@ class Transaction : public TransactionAnchoredVariables, public TransactionSecMa
int getRuleEngineState() const;
std::string toJSON(int parts);
std::string toOldAuditLogFormat(int parts, const std::string &trailer);
std::string toOldAuditLogFormat(int parts, const std::string &trailer, const std::string &header);
std::string toOldAuditLogFormatIndex(const std::string &filename,
double size, const std::string &md5);