Outputs messages to system and application log and to the console.
More...
#include <Messaging.h>
Outputs messages to system and application log and to the console.
Definition at line 35 of file Messaging.h.
Message levels available.
Enumerator |
---|
DEBUG |
Debugging information only to be shown in the console.
|
INFORMATION |
Information, e.g. access scanning has started.
|
WARNING |
Warning, e.g. file access has been blocked.
|
ERROR |
Error, e.g. malfunction of the code, malware detected.
|
Definition at line 40 of file Messaging.h.
Messaging::~Messaging |
( |
| ) |
|
|
private |
void Messaging::error |
( |
const std::string & |
label | ) |
|
|
static |
Sends an error message based on errno.
- Parameters
-
label | label to futher detail error message |
Definition at line 88 of file Messaging.cc.
Retrieves the messaging singleton.
Definition at line 157 of file Messaging.cc.
void Messaging::message |
( |
const enum Level |
level, |
|
|
const std::string & |
message |
|
) |
| |
|
static |
Sends message.
- Parameters
-
level | message priority |
message | message text |
Definition at line 101 of file Messaging.cc.
void Messaging::setLevel |
( |
const enum Level |
level | ) |
|
|
static |
Sets message level.
- Parameters
-
Definition at line 149 of file Messaging.cc.
void Messaging::teardown |
( |
| ) |
|
|
static |
std::fstream Messaging::logfs |
|
private |
enum Level Messaging::messageLevel |
|
private |
Singleton responsible for all messages sent.
Definition at line 64 of file Messaging.h.
The documentation for this class was generated from the following files: