CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
Loading...
Searching...
No Matches
CdiLogMessageCbData Struct Reference

A structure of this type is passed as the parameter to CdiLogMessageCallback(). It contains a single log message generated by the SDK. More...

#include <cdi_log_api.h>

Data Fields

CdiConnectionHandle connection_handle
 The handle of the connection which generated the log message. It is the instance which was created using a previous call to one of the Cdi...Create() API functions. If NULL, then the global logger generated the log message.
 
CdiUserCbParameter log_user_cb_param
 If connection_handle is not NULL, this is the user defined log message callback parameter that was specified when the connection instance was created using one of the Cdi...Create() API functions. If connection_handle is NULL, then the global logger generated the log message and this value should be ignored.
 
CdiLogComponent component
 Type of component that generated the message.
 
CdiLogLevel log_level
 Level of the log message.
 
const char * source_code_function_name_ptr
 Pointer to string containing the name of the function the message was generated from.
 
int source_code_line_number
 Source code line number that message was generated from.
 
int line_count
 For a single-line log message, contains 1. Otherwise, contains the number of lines in a multiline message.
 
const char * message_str
 Pointer to message string. If the message contains multiple lines, each line is terminated with a '\0'.
 

Detailed Description

A structure of this type is passed as the parameter to CdiLogMessageCallback(). It contains a single log message generated by the SDK.


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