@marcin.rulkowski/syslog-udp-client
v1.0.3
Published
Syslog stream sending messages to remote server over udp protocol
Downloads
3
Maintainers
Readme
- Installation
npm install @marcin.rulkowski/syslog-udp-client
- Overview
Module provide udp write stream and message formatter to send logs to syslog server from bunyan logger.
Example usage:
logger = bunyan.createLogger({
name: 'logger-name',
streams: [{
type: 'raw',
level: 'info',
stream: bunyanStream.createStream({
host: HOST,
port: PORT,
appName: 'application-name',
levelMapping: function () {
return syslogLevel.DEBUG;
}
})
}]
});
It's mandatory that type of stream is marked fo bunyan as a raw, otherwise some necessary data wouldn't be added final syslog message.