NXLog CE: function for logs transfer


#1 Tuxizm

Hello

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?

#2 adm Nxlog ✓
#1 Tuxizm
Hello 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?

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().