rodbus (C++ API) 1.3.1
Loading...
Searching...
No Matches
rodbus::Logger Class Referenceabstract

Logging interface that receives the log messages and writes them somewhere. More...

#include <rodbus.hpp>

Inheritance diagram for rodbus::Logger:
rodbus::functional::LoggerLambda< T >

Public Member Functions

virtual void on_message (LogLevel level, const char *message)=0
 Called when a log message was received and should be logged. More...
 

Detailed Description

Logging interface that receives the log messages and writes them somewhere.

Note
this class is an "interface" and only has virtual methods, some of which may have default implementations.

Member Function Documentation

◆ on_message()

virtual void rodbus::Logger::on_message ( LogLevel  level,
const char *  message 
)
pure virtual

Called when a log message was received and should be logged.

Parameters
levelLevel of the message
messageActual formatted message

Implemented in rodbus::functional::LoggerLambda< T >.


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