winston-sqs

0.1.0 • Public • Published

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.'

Readme

Keywords

none

Package Sidebar

Install

npm i winston-sqs

Weekly Downloads

2

Version

0.1.0

License

none

Last publish

Collaborators

  • agad