A sane syslog API.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.jshintrc
.travis.yml
LICENSE
README.md
package.json

README.md

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.