bkjs-syslog
v0.3.1
Published
syslog support for node.js and backendjs
Downloads
4
Readme
syslog module for node and backendjs
Supports UDP and Unix domain socket, the primary goal is to use with local syslogd server, does not depend on the libc syslog library.
Usage
open(name, priority, facility)
- initialize syslog client, used by the logger modulesend(level, text)
close()
var syslog = require("bkjs-syslog");
syslog.open("test", syslog.LOG_PID | syslog.LOG_CONS, syslog.LOG_DAEMON);
syslog.send(syslog.LOG_ERR, "Error test");
Author
Vlad Seryakov