syslogger

0.2.0 • Public • Published

SysLogger

Build Status NPM version

A sane, simple API to blast things at syslog.

var SysLogger = require('syslogger');
var logger = new SysLogger({
  name: 'myApp',
  facility: 'user',
  address: '127.0.0.1',
  port: 514,
  type: 'BSD' // 'BSD', 'RFC3164' or 'RFC5424'
});
 
logger.log(severity, message);
// or
logger.notice(message);
logger.warn(message);
logger.emerg(message);

To choose between different formats, pass a value as the type option. See https://github.com/squeeks/glossy#producing about the formats.

Dependencies (1)

Dev Dependencies (1)

Package Sidebar

Install

npm i syslogger

Weekly Downloads

3

Version

0.2.0

License

MPLv2.0

Last publish

Collaborators

  • seanmonstar