lwpa  0.1.0
LightWeight Platform Abstraction (lwpa)
View other versions:
LwpaLogParams Struct Reference

Overview

A set of parameters used for the lwpa_*log() functions.

Data Fields

lwpa_log_action_t action
 What should be done when lwpa_*log() is called.
 
lwpa_log_callback log_fn
 A callback function for the finished log string(s).
 
LwpaSyslogParams syslog_params
 The syslog header parameters.
 
int log_mask
 A mask value that determines which priority messages can be logged.
 
lwpa_log_time_fn time_fn
 A callback function for lwpa_*log() functions to obtain the time from the application. More...
 
void * context
 Application context that will be passed back with the log callback function.
 

Field Documentation

◆ time_fn

A callback function for lwpa_*log() functions to obtain the time from the application.

If NULL, no timestamp will be added to log messages.


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