![]() |
rodbus (C API) 1.3.1
|
Logging interface that receives the log messages and writes them somewhere. More...
#include <rodbus.h>
Data Fields | |
| void(* | on_message )(rodbus_log_level_t, const char *, void *) |
| Called when a log message was received and should be logged. More... | |
| void(* | on_destroy )(void *arg) |
| Callback when the underlying owner doesn't need the interface anymore. More... | |
| void * | ctx |
| Context data. More... | |
Logging interface that receives the log messages and writes them somewhere.
| void* rodbus_logger_t::ctx |
Context data.
| void(* rodbus_logger_t::on_destroy) (void *arg) |
Callback when the underlying owner doesn't need the interface anymore.
| arg | Context data |
| void(* rodbus_logger_t::on_message) (rodbus_log_level_t, const char *, void *) |
Called when a log message was received and should be logged.
| level | Level of the message |
| message | Actual formatted message |
| ctx | Context data |