I write input module for nxlog. I have wrote function to read data but I don't know how to tranfer data further. Which function should I call? nx_logdata_set_string?

AskedJuly 31, 2015 - 2:22pm

Answer (1)

First the module needs to create an nx_logdata_t struct which stores the event data. You can add fields with nx_logdata_set_string() and related functions. When it is fully constructed, it should be dispatched with nx_module_add_logdata_input().