 |
Fledge
An open source edge computing platform for industrial users
|
1 #ifndef _AUDIT_LOGGER_H
2 #define _AUDIT_LOGGER_H
14 #include <management_client.h>
27 static void auditLog(
const std::string& code,
28 const std::string& level,
29 const std::string& data =
"");
31 void audit(
const std::string& code,
32 const std::string& level,
33 const std::string& data =
"");
~AuditLogger()
Destructor for an audit logger.
Definition: audit_logger.cpp:33
void audit(const std::string &code, const std::string &level, const std::string &data="")
Log an audit message.
Definition: audit_logger.cpp:71
The management client class used by services and tasks to communicate with the management API of the ...
Definition: management_client.h:43
static AuditLogger * getLogger()
Get the audit logger singleton.
Definition: audit_logger.cpp:40
AuditLogger(ManagementClient *mgmt)
Constructor for an audit logger that is passed the management client.
Definition: audit_logger.cpp:25
A singleton class for access to the audit logger within services.
Definition: audit_logger.h:21