Skip to content

Commit

Permalink
Merge pull request #70 from brunogsa/feature/configs_for_relay
Browse files Browse the repository at this point in the history
Make `batchSize` and `submissionInterval` configurable
  • Loading branch information
timdp authored Sep 16, 2017
2 parents 0044b2e + bdbe933 commit f4672bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ winston.add(CloudWatchTransport, {
logStreamName: '...', // REQUIRED
createLogGroup: true,
createLogStream: true,
submissionInterval: 2000,
batchSize: 20,
awsConfig: {
accessKeyId: '...',
secretAccessKey: '...',
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class CloudWatchTransport extends Transport {
super(options)
const client = new CloudWatchClient(options.logGroupName,
options.logStreamName, options)
this._relay = new Relay(client)
this._relay = new Relay(client, options)
this._relay.on('error', (err) => this.emit('error', err))
this._relay.start()
}
Expand Down

0 comments on commit f4672bc

Please sign in to comment.