TIM SDK
TIM API C
ta_s_log_record Struct Reference

Description

Read-only log record.

Data Fields

ta_e_log_level_t level
 Log level.
 
unsigned int thread
 Thread identifier.
 
const char * file
 File name.
 
const char * method
 Method name.
 
int line
 Line number.
 
const char * message
 Message text. More...
 
const char ** parameters
 Optional list of parameters or 0 if empty.
 
int parameter_count
 Number of parameters.
 
const ta_s_log_record_stack_trace_tstack_trace
 Stack trace entries or 0 if empty.
 
int stack_trace_count
 Number of stack trace entries.
 
time_t timetstamp
 Timestamp.
 

Field Documentation

◆ message

const char* ta_s_log_record::message

Message text.

Warning
Message text is potentially very long for example for SIXml logging. Using *printf family of functions runs the risk of buffer overflow causing segmentation faults. To avoid problems use the *nprintf family of functions. These take a buffer size parameter and avoid writing past the buffer size in all situations.

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