[riot-notifications] [RIOT-OS/RIOT] Add basic syslog implementation (#11362)

crest42 notifications at github.com
Mon May 27 13:22:29 CEST 2019


crest42 commented on this pull request.



> +#include "syslog/syslog.h"
+
+int _syslog_init(int argc, char **argv)
+{
+    (void)argc;
+    (void)argv;
+    openlog("test", 0, LOG_USER);
+    return 0;
+}
+
+int _syslog(int argc, char **argv)
+{
+    if(argc < 2) {
+        return -1;
+    }
+    syslog(LOG_EMERG, argv[1], LOG_ERR);

Remove LOG_ERR

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11362#pullrequestreview-242227073
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190527/c89c8e44/attachment.html>


More information about the notifications mailing list