Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding winston-aws-cloudwatch to transport docs #692

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions docs/transports.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ There are several [core transports](#winston-core) included in `winston`, which
* [SimpleDB](#simpledb-transport)
* [Mail](#mail-transport)
* [Amazon SNS](#amazon-sns-simple-notification-system-transport)
* [Amazon CloudWatch](#amazon-cloudwatch-transport)
* [Graylog2](#graylog2-transport)
* [Cassandra](#cassandra-transport)
* [Azure Table](#azure-table)
Expand Down Expand Up @@ -319,6 +320,25 @@ Options:
* __json:__ use json instead of a prettier (human friendly) string for meta information in the notification. (default: `false`)
* __handleExceptions:__ set to true to have this transport handle exceptions. (default: `false`)

### Amazon CloudWatch Transport

The [winston-aws-cloudwatch][24] transport relays your log messages to Amazon CloudWatch.

```js
var winston = require('winston'),
winstonAwsCloudWatch = require('winston-aws-cloudwatch');

winston.add(winstonAwsCloudWatch, options);
```

Options:

* __logGroupName:__ The name of the CloudWatch log group to which to log. *[required]*
* __logStreamName:__ The name of the CloudWatch log stream to which to log. *[required]*
* __awsConfig:__ An object containing your `accessKeyId`, `secretAccessKey`, `region`, etc.

Alternatively, you may be interested in [winston-cloudwatch][25].

### Amazon DynamoDB Transport
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).

Expand Down Expand Up @@ -543,3 +563,5 @@ If `env` is either 'dev' or 'test' the lib will _not_ load the included newrelic
[21]: https://github.com/jpoon/winston-azuretable
[22]: https://github.com/rickcraig/winston-airbrake2
[23]: https://github.com/namshi/winston-newrelic
[24]: https://github.com/timdp/winston-aws-cloudwatch
[25]: https://github.com/lazywithclass/winston-cloudwatch