Dataflow Runtime API
4.0.1.0
|
Implementation of a simple centralized logging mechanism. More...
#include <Imt.Base.Dff.Runtime/RuntimeLog.h>
Static Public Member Functions | |
static void | init (RuntimeCore::CoreHandle const loggerHandle) |
Initialize the logger. More... | |
static void | setLogLevelThreshold (uint8_t const logLevelThreshold) |
Set the threshold of the highest logging level which is not filtered. More... | |
static void | sendLog (uint8_t const logLevel, ::imt::base::core::serialization::SerializableIfc const &logMessage, size_t const logMessageSize) |
Send a log message if logLevel is <= LogLevelThreshold. More... | |
Static Public Attributes | |
static uint8_t const | DEFAULT_LOG_LEVEL_THRESHOLD = UINT8_MAX |
The log level threshold is set tho this value for default. More... | |
Implementation of a simple centralized logging mechanism.
An Executable can be registered to receive the logging messages by passing its CoreHandle to the init function. The content of a logging message can be defined in application (derive from SerializableIfc). If no handler is registered, the message will be discarded. By default all log messages are send (log level threshold filter inactive).
|
static |
Initialize the logger.
loggerHandle | Handle of the logger which receives the logging messages. |
|
static |
Send a log message if logLevel is <= LogLevelThreshold.
If logger is not initialized the message will be discarded.
logLevel | Logging level of the given log message. |
logMessage | Log message. |
logMessageSize | size of log message in bytes |
|
static |
Set the threshold of the highest logging level which is not filtered.
A higher log level has a lower value (0 = highest log level, 255 = lowest log level).
logLevelThreshold | Logging level threshold. |
The log level threshold is set tho this value for default.