Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Node addon to use system log daemon
C++ JavaScript Python
tag: v0.6.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
node-syslog.cc
node-syslog.h
nodesyslog.js
package.json
test.js
wscript

README

Node-Syslog

v0.6.1

This is an node module (add-on) to work with system log daemon on unix systems.
Module is tested with node.js v0.3.3 and metalog, syslog-ng 3.1.1.

Installation

      npm install node-syslog

or manualy

      git clone
      node-waf configure build

For more inforamtion about how to use module check test.js

Usage

     #!/bin/env node
     
     var Syslog = require('node-syslog').Syslog;
     
     Syslog.init("node-syslog", Syslog.LOG_PID | Syslog.LOG_ODELAY, Syslog.LOG_INFO);
     Syslog.log(Syslog.LOG_INFO, "Node Syslog Module output" + new Date());
     
Check your /var/log/messages (syslog, syslog-ng), or /var/log/everything/current (metalog) file for any test entry.
Something went wrong with that request. Please try again.