yasyslog

0.0.2 • Public • Published

Node Yet Another Syslog

Node module to work with system log syslog daemon on unix systems.

At the moment only the UDP transport is implemented

Build Status

Build Status

Motivation

Have a pure node syslog module with no native extensions

Usage

var syslog = require('yasyslog');
 
//plain and simple, log on LOG_USER localhost
var client= new syslog.Client();
 
client.info('this is an info level log entry');
 
// sample with some custom configuration
var clientSeven = new syslog.Client({
  host: '192.168.0.1',
  port: 5541,
  facility: syslog.FACILITIES.LOG_LOCAL7
})
 
clientSeven.emerg('this is an emergency');
 
//logging to an arbitrary severity
 
clientSeven.rawLog(syslog.SEVERITIES.LOG_CRIT, 'critical condition');

Credits

This project uses code from

Readme

Keywords

none

Package Sidebar

Install

npm i yasyslog

Weekly Downloads

2

Version

0.0.2

License

none

Last publish

Collaborators

  • hungryblank