dnp3 (C API) 1.1.0
dnp3_logger_t Struct Reference

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

#include <dnp3.h>

Data Fields

void(* on_message )(dnp3_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* dnp3_logger_t::ctx

Context data.

◆ on_destroy

void(* dnp3_logger_t::on_destroy) (void *arg)

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

Parameters
argContext data

◆ on_message

void(* dnp3_logger_t::on_message) (dnp3_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: