# @unicity/cloudwatch-logger

> ## About

Latest version **1.1.0** (published 2022-10-13) · UNLICENSED license · 0 weekly downloads

## Install

```sh
npm install @unicity/cloudwatch-logger
pnpm add @unicity/cloudwatch-logger
yarn add @unicity/cloudwatch-logger
bun add @unicity/cloudwatch-logger
```

## 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.1.0 |
| Published | 2022-10-13 |
| First published | 2021-01-19 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 11.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Unicity International |
| Maintainers | brendenc00k, lukecfairchild, unicityit, mrmmattson |

## Links

- npm: https://www.npmjs.com/package/@unicity/cloudwatch-logger
- npm.io page: https://npm.io/package/@unicity/cloudwatch-logger

## Dependencies (4)

- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.828.0
- [simpler-types](https://npm.io/package/simpler-types.md) ^1.1.4
- [@unicity/session](https://npm.io/package/@unicity/session.md) ^1.0.3
- [json-stringify-safe](https://npm.io/package/json-stringify-safe.md) ^5.0.1

## Recent versions

- 1.1.0 (latest) — 2022-10-13
- 1.0.9 — 2021-01-30
- 1.0.8 — 2021-01-29
- 1.0.7 — 2021-01-29
- 1.0.6 — 2021-01-29
- 1.0.5 — 2021-01-22
- 1.0.4 — 2021-01-21
- 1.0.3 — 2021-01-19
- 1.0.1 — 2021-01-19
- 1.0.0 — 2021-01-19

## README

# Unicity-Cloudwatch-Logger

## About

```javascript
const Logger = require('@unicity/cloudwatch-logger');

const env    = 'qa';
const logger = new Logger({
	service                   : 'events', // this is optional and adds a key saying service in each message.
	groupName                 : `hydra${env}.unicity.net/v5a`,
	streamName                : 'test',
	region                    : 'us-east-1',
	handleUnhandledExceptions : true,
	logLocallyOnly            : true // true will make this not actually log to AWS and only log locally
});

logger.info('hello world', event);
```

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