rodbus (C API) 1.3.1
Loading...
Searching...
No Matches
rodbus_logger_t Struct Reference

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...
 

Detailed Description

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

Field Documentation

◆ ctx

void* rodbus_logger_t::ctx

Context data.

◆ on_destroy

void(* rodbus_logger_t::on_destroy) (void *arg)

Callback when the underlying owner doesn't need the interface anymore.

Parameters
argContext data

◆ on_message

void(* rodbus_logger_t::on_message) (rodbus_log_level_t, const char *, void *)

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

Parameters
levelLevel of the message
messageActual formatted message
ctxContext data

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