syslog-client - TCP and UDP syslog client supporting IPv4 and IPv6

40 views
Skip to first unread message

Stephen Vickers

unread,
Jul 31, 2015, 5:23:26 PM7/31/15
to nodejs
Hi All,

I know there are quite a few syslog clients out there on npm but I couldn't find one which supports both UDP and TCP, so here is one:


The interface is nice and clean with (hopefully) sensible defaults:

require("syslog-client").createClient("127.0.0.1").log("example message");

This sends a message to the local host using port 514, uses the local hosts name in the HEADER field of the message, and uses the local0 facility and informational severity.

Steve
Reply all
Reply to author
Forward
0 new messages