Amazon SQS Transport for winston.
Installation via npm
$ npm install winston$ npm install winston-sqs
Usage
var winston = ;SQS;winston;
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.'