Skip to content
schamane edited this page Jun 12, 2011 · 6 revisions

Welcome to the node-syslog wiki!

Node-syslog is my first try to write node addon. With this addon you can write log messages to the system log daemon like syslogd, metalog or syslog-ng.


var Syslog = require('node-syslog');

Syslog.init( "applicationName", Syslog.LOG_PID | Syslog.LOGODELAY, Syslog.LOG_LOCAL0);
Syslog.log( "Hallo World!" );

Now check your local system log files for the new entry. (/var/log/*)

Clone this wiki locally