Created
March 14, 2021 18:52
-
-
Save wesleymesquita/6dd340684ff89ba514d92c2b3e59f9ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Write on syslog - INFO*/ | |
#include <syslog.h> | |
int record_syslog_info(const char* topic, const char* msg) | |
{ | |
openlog(topic, msg, 0); | |
syslog(LOG_INFO, msg); | |
closelog(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment