1.0.10 • Published 2 years ago

winston-amqp-graylog v1.0.10

Weekly downloads
26
License
MIT
Repository
github
Last release
2 years ago

winston-amqp-graylog

Winston transport for Graylog amqp input.

Installation

$ npm install winston
$ npm install winston-amqp-graylog

Usage

const winston = require('winston');
const AmqpTransport = require('winston-amqp-graylog');

const logger = new winston.Logger({
    transports: [
      new AmqpTransport(options)
    ],
    exitOnError: false, // do not exit on handled exceptions
  });

Options

  • rabbitUri: RabbitMQ url
  • queue: RabbitMQ queue to process log
  • hostname: The name of the host (default: os.hostname())
  • level: Level of the message to send to Graylog

Log Levels

Winston LevelGraylog2 level
emergemergency
alertalert
critcritical
errorerror
warningwarning
warnwarning
noticenotice
infoinfo
debugdebug
1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.0

5 years ago