winston-cloudwatch
Advanced tools
Comparing version 0.2.5 to 0.3.0
@@ -41,3 +41,3 @@ var AWS = require('aws-sdk'), | ||
logStreamName: logStreamName, | ||
logEvents: logEvents.splice(0, 10) | ||
logEvents: logEvents.splice(0, 20) | ||
}; | ||
@@ -44,0 +44,0 @@ |
{ | ||
"name": "winston-cloudwatch", | ||
"version": "0.2.5", | ||
"version": "0.3.0", | ||
"description": "Send logs to Amazon Cloudwatch using Winston.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -34,2 +34,16 @@ winston-cloudwatch [](https://travis-ci.org/lazywithclass/winston-cloudwatch) [](https://david-dm.org/lazywithclass/winston-cloudwatch) | ||
The default level is `info`, you could override that, to `silly` for example, like so: | ||
```js | ||
var winston = require('winston'), | ||
options = { | ||
level: 'silly', | ||
logGroupName: 'your-log-group', | ||
logStreamName: 'your-log-stream' | ||
}; | ||
winston.add(require('winston-cloudwatch'), options); | ||
winston.error('log this', { and: 'this too' }); | ||
``` | ||
If you want you could pass AWS keys as options, like so: | ||
@@ -55,2 +69,6 @@ | ||
### 0.3.0 | ||
Increase `logEvents` batch upload to 20 items | ||
### 0.2.5 | ||
@@ -57,0 +75,0 @@ |
8761
100