BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions | Static Public Member Functions
BeeeOn::OZWPocoLoggerAdapter Class Reference

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>

Inheritance diagram for BeeeOn::OZWPocoLoggerAdapter:

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)
 

Detailed Description

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.

Member Function Documentation

void OZWPocoLoggerAdapter::Write ( OpenZWave::LogLevel  logLevel,
uint8 const  nodeId,
char const *  format,
va_list  args 
)
override

Write formatted data from variable argument list to string.

Parameters
logLevellog level used in openzwave
nodeIdidetifier in the z-wave network
formatmessage for logger
args

The documentation for this class was generated from the following files: