syslog-stream

Create a writable stream for syslog using C bindings.

npm install syslog-stream
9 downloads in the last day
22 downloads in the last week
130 downloads in the last month

syslog-stream

Build Status

Create a writable stream for syslog using C bindings.

Installation

Install using npm:

npm install syslog-stream

Example

var syslog = require('syslog-stream');

// Use stream methods
syslog.severity = 'debug';
fs.createReadStream(filename).pipe(syslog);
syslog.write('Message to syslog', 'utf8', function() {
  // written to syslog
});

// Use syslog methods
syslog.info('find me in the logs');
syslog.warn('Streams are too cool');
syslog.error('Red alert');

Test

Tests are written with mocha and should using BDD-style assertions.

Run them with npm:

npm test

MIT Licensed

npm loves you