Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A sane syslog API.
branch: master
Failed to load latest commit information.
lib add missing license file
test fix tests
.gitignore syslogger
.jshintrc syslogger
.travis.yml travis
LICENSE
README.md
package.json v0.2.0

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.

Something went wrong with that request. Please try again.