syslogger
v0.2.0
Published
A sane syslog API
Downloads
23
Readme
SysLogger
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.