0.0.1 • Published 10 years ago

winston-logstash-amqp v0.0.1

Weekly downloads
8
License
-
Repository
github
Last release
10 years ago

winston-logstash-amqp

A AMQP transport for winston that publishes logs consumed by Logstash. Use winston logging with RabbitMQ to react on log messages. Inspired by winston-amqp.

Installation

Installing winston-logstash-amqp

  npm install --save winston-logstash-amqp

Usage

  var LogstashAMQP = require('winston-logstash-amqp').LogstashAMQP;
  winston.add(LogstashAMQP, options);

The LogstashAMQP transport takes the following options:

  • host: The host running RabbitMQ, defaults to localhost.
  • port: The port on the host that RabbitMQ is running on, defaults to 5672.
  • vhost: virtual host entry for the RabbitMQ server, defaults to '/'
  • login: login for the RabbitMQ server, defaults to 'guest'
  • password: password for the RabbitMQ server, defaults to 'guest'
  • level: Level of messages that this transport should log.
  • silent: Boolean flag indicating whether to suppress output.
  • routingKey: The routing key to use when publishing to the defined exchange.
  • appName: The application name to place in @fields