You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30Lines changed: 30 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -842,6 +842,35 @@ The Mail transport uses [emailjs](https://github.com/eleith/emailjs) behind the
842
842
843
843
*Metadata:* Stringified as JSON in email.
844
844
845
+
### Amazon DynamoDB Transport
846
+
The [winston-dynamodb][26] transport uses Amazon's DynamoDB as a sink for log messages. You can take advantage of the various authentication methods supports by Amazon's aws-sdk module. See [Configuring the SDK in Node.js](http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html).
847
+
848
+
```js
849
+
var winston =require('winston'),
850
+
winstonDynamo =require("winston-dynamodb");
851
+
852
+
winstonDynamo.DynamoDB;
853
+
winston.add(winston.transports.DynamoDB, options)
854
+
```
855
+
856
+
Options:
857
+
*__accessKeyId:__ your AWS access key id
858
+
*__secretAccessKey:__ your AWS secret access key
859
+
*__region:__ the region where the domain is hosted
860
+
*__useEnvironment:__ use process.env values for AWS access, secret, & region.
Also supports callbacks for completion when the DynamoDB putItem has been compelted.
873
+
845
874
### Amazon SNS (Simple Notification System) Transport
846
875
847
876
The [winston-sns][25] transport uses amazon SNS to send emails, texts, or a bunch of other notifications. Since this transport uses the Amazon AWS SDK for JavaScript, you can take advantage of the various methods of authentication found in Amazon's [Configuring the SDK in Node.js](http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html) document.
@@ -1040,3 +1069,4 @@ All of the winston tests are written in [vows][9], and designed to be run with n
0 commit comments