BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
OZWPocoLoggerAdapter adapts the the logging infrastructure of the OpenZWave library to the Poco::Logger. It converts the OpenZWave logging levels as follows: More...
#include <OZWPocoLoggerAdapter.h>
Public Member Functions | |
OZWPocoLoggerAdapter (Poco::Logger &logger) | |
void | Write (OpenZWave::LogLevel logLevel, uint8 const nodeId, char const *format, va_list args) override |
void | QueueDump () override |
The implementation does nothing. | |
void | QueueClear () override |
The implementation does nothing. | |
void | SetLoggingState (OpenZWave::LogLevel saveLevel, OpenZWave::LogLevel queueLevel, OpenZWave::LogLevel dumpTrigger) override |
The implementation does nothing. | |
void | SetLogFileName (const std::string &filename) override |
The implementation does nothing. | |
Static Public Member Functions | |
static OpenZWave::LogLevel | fromPocoLevel (int prio) |
static OpenZWave::LogLevel | fromPocoLevel (Poco::Message::Priority prio) |
OZWPocoLoggerAdapter adapts the the logging infrastructure of the OpenZWave library to the Poco::Logger. It converts the OpenZWave logging levels as follows:
Each created Poco::Message would also contain named parameter "node" holding the node ID. This can be used for better formatting of log messages.
|
override |
Write formatted data from variable argument list to string.
logLevel | log level used in openzwave |
nodeId | idetifier in the z-wave network |
format | message for logger |
args |