@marcin.rulkowski/syslog-udp-client

1.0.3 • Public • Published
  1. Installation

npm install @marcin.rulkowski/syslog-udp-client

  1. Overview

Codeship Status for mrulkowski/node-syslog-udp-client

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.

Readme

Keywords

Package Sidebar

Install

npm i @marcin.rulkowski/syslog-udp-client

Weekly Downloads

5

Version

1.0.3

License

ISC

Last publish

Collaborators

  • marcin.rulkowski