# cloudwatch-logger-node

> ## Installing

Latest version **1.0.3** (published 2018-03-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install cloudwatch-logger-node
pnpm add cloudwatch-logger-node
yarn add cloudwatch-logger-node
bun add cloudwatch-logger-node
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-03-12 |
| First published | 2018-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 11 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mike Zinn |
| Maintainers | mikezinn |

## Links

- npm: https://www.npmjs.com/package/cloudwatch-logger-node
- Repository: https://github.com/therealmikezinn/cloudwatch-logger-node
- Homepage: https://github.com/therealmikezinn/cloudwatch-logger-node#readme
- Issues: https://github.com/therealmikezinn/cloudwatch-logger-node/issues
- npm.io page: https://npm.io/package/cloudwatch-logger-node

## Dependencies (2)

- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.186.0
- [js-type-checker](https://npm.io/package/js-type-checker.md) ^1.0.0

## Recent versions

- 1.0.3 (latest) — 2018-03-12
- 1.0.2 — 2018-03-09
- 1.0.1 — 2018-03-08
- 1.0.0 — 2018-03-08

## README

# cloudwatch-logger-node

## Installing

```bash
npm install cloudwatch-logger-node

yarn add cloudwatch-logger-node
```


## Usage

```js
const CloudWatchLogger = require('cloudwatch-logger-node');

const logger = new CloudWatchLogger({
  aws: {
    region: 'us-east-1',
    secretAccessKey: '',
    accessKeyId: '',
  },
});

logger.add('log', {
    logStreamName: 'log',
    logGroupName: 'test',
}).add('info', {
    logStreamName: 'info',
    logGroupName: 'test',
}).add('error', {
    logStreamName: 'error',
    logGroupName: 'test',
}).on('error', function(err) {
  // handle error
});

logger.log("Message");

logger.info("INFO");

logger.error("error");
````

---
_Source: https://npm.io/package/cloudwatch-logger-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
