winston-sqs

An Amazon Simple Queue Service Transport for winston (http://www.github.com/flatiron/winston)

npm install winston-sqs
4 downloads in the last month

Amazon SQS Transport for winston.

Installation via npm

  $ npm install winston
  $ npm install winston-sqs

Usage

  var winston = require('winston');
  require('winston-sqs').SQS;
  winston.add(winston.transports.SQS, options);

The Winston SQS transport depends on aws-sdk.

The constructor options are:

  • aws_accesskeyid: Your Amazon Public Key. [required]
  • aws_secretaccesskey: Your Amazon Secret. [required]
  • aws_queueurl: The specific queue URL to write to. Found in your AWS Console. [required]
  • aws_region: AWS Region to use. (default: us-east-1)
  • level: default logging level. (default: info)
  • aws_sslenabled: whether to use SSL in communication with SQS. (default: true)
  • aws_maxretries: number of times to retry communication with SQS. (default: 3)
  • timestamp: whether to include a timestamp in the queue message. (default: true)

Note that metadata will be automatically 'stringified.'

npm loves you