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.

Readme

Keywords

Package Sidebar

Install

npm i syslogger

Weekly Downloads

1

Version

0.2.0

License

MPLv2.0

Last publish

Collaborators

  • seanmonstar