Skip to content

jeremycx/node-syslog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node-Syslog

v1.1.5

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

Read Wiki "setMask" page for more information about how to use "setMask" functionality.

Current version is compatible to node 0.8.x and higher versions. For older nodejs versions please use node-syslog v1.0.3

Node-syslog doesn't support Darwin OS and MS Windows, but should work fine with this OSes.

Authors

  • Nazar Kulyk
  • Jeremy Childs

Installation

npm

  npm install node-syslog

manual

  git clone
  node-gyp configure build

Usage

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

 var Syslog = require('node-syslog');
 
 Syslog.init("node-syslog", Syslog.LOG_PID | Syslog.LOG_ODELAY, Syslog.LOG_LOCAL0);
 Syslog.log(Syslog.LOG_INFO, "Node Syslog Module output " + new Date());
 Syslog.close();

Check your /var/log/messages (syslog, syslog-ng), or /var/log/everything/current (metalog) file for any test entry.

About

Node addon to use system log daemon

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 77.8%
  • JavaScript 22.2%