New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

winston-cloudwatch

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-cloudwatch - npm Package Compare versions

Comparing version 0.2.5 to 0.3.0

2

lib/cloudwatch-integration.js

@@ -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 [![Build Status](https://travis-ci.org/lazywithclass/winston-cloudwatch.svg?branch=master)](https://travis-ci.org/lazywithclass/winston-cloudwatch) [![David Dependency Overview](https://david-dm.org/lazywithclass/winston-cloudwatch.png "David Dependency Overview")](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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc