dnp3  0.9.0
Public Attributes | List of all members
dnp3_logger_t Struct Reference

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

#include <dnp3.h>

Public Attributes

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.
 

Detailed Description

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

Member Data Documentation

◆ 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: