Skip to content

Home

schamane edited this page Jun 12, 2011 · 6 revisions
Clone this wiki locally

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/*)

Something went wrong with that request. Please try again.