https://github.com/schamane/node-syslog
Node addon to use system log daemon
https://github.com/schamane/node-syslog
Last synced: 9 months ago
JSON representation
Node addon to use system log daemon
- Host: GitHub
- URL: https://github.com/schamane/node-syslog
- Owner: schamane
- License: bsd-2-clause
- Created: 2010-05-05T21:05:16.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2024-02-23T15:41:52.000Z (almost 2 years ago)
- Last Synced: 2025-03-01T03:33:11.678Z (10 months ago)
- Language: C++
- Homepage: http://github.com/schamane/node-syslog
- Size: 70.3 KB
- Stars: 95
- Watchers: 6
- Forks: 33
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://travis-ci.org/schamane/node-syslog)
# Node-Syslog
Node-Syslog is no more supported and do not work with current Node version.
You can use other modules like: https://github.com/strongloop/modern-syslog or https://github.com/strongloop/modern-syslog
v1.2.0
This is a node module (add-on) to work with syslog (system log) daemon on unix systems.
This module has been tested with:
* node.js v0.8.16
* version v0.9.3
* metalog
* syslog-ng 3.1.1
Read the [setMask wiki page](https://github.com/schamane/node-syslog/wiki/setMask) for using the `setMask` functionality.
The current version is compatible to node 0.8.x and higher. For older node.js versions, please use node-syslog v1.0.3
Node-syslog does not officially support Darwin OS and MS Windows but should work fine.
## Authors
* Nazar Kulyk
* Jeremy Childs
* Sam Roberts
* Ben Noordhuis
## Installation
### npm
npm install node-syslog
### manual
git clone
node-gyp configure build
## Usage
For more information 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.