# @obi-tec/logger-console

> A simple library write log for Lambda Applications with Cloudwatch logs.

Latest version **1.3.0** (published 2024-08-16) · Apache License license · 0 weekly downloads

## Install

```sh
npm install @obi-tec/logger-console
pnpm add @obi-tec/logger-console
yarn add @obi-tec/logger-console
bun add @obi-tec/logger-console
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2024-08-16 |
| First published | 2022-04-29 |
| Weekly downloads | 0 |
| License | Apache License |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 17.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Obi Tec |
| Maintainers | brunocamboim, jonatas.saraiva, dev-obi-tec |
| Keywords | logger, console, lambda, cloudwatch |

## Links

- npm: https://www.npmjs.com/package/@obi-tec/logger-console
- Repository: https://github.com/obi-tec/logger-console
- Homepage: https://github.com/obi-tec/logger-console#readme
- Issues: https://github.com/obi-tec/logger-console/issues
- npm.io page: https://npm.io/package/@obi-tec/logger-console

## Dependencies (1)

- [json-stringify-safe](https://npm.io/package/json-stringify-safe.md) ^5.0.1

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads

## Recent versions

- 1.3.0 (latest) — 2024-08-16
- 1.2.0 — 2024-07-19
- 1.1.4 — 2024-07-17
- 1.1.3 — 2024-07-16
- 1.1.2 — 2024-07-15
- 1.1.1 — 2023-10-03
- 1.1.0 — 2023-10-03
- 1.0.4 — 2023-03-21
- 1.0.3 — 2022-04-29
- 1.0.2 — 2022-04-29
- 1.0.1 — 2022-04-29
- 1.0.0 — 2022-04-29

## README

# Logger Console
A simple library write log for Lambda Applications with Cloudwatch logs.

## Installation
```bash
npm install @obi-tec/logger-console
```

## Usage
```js
const logger = require('@obi-tec/logger-console');

logger.info('Some log info');

const details = {
    otherMessage: 'Some other message'
};
logger.info('Some log info with details', details);
```

## Change log level
To change the log level is used the environment variable `process.env.LOG_LEVEL`

The default value is `info`

Options:
```
LOG_LEVEL="debug"
LOG_LEVEL="info"
LOG_LEVEL="warn"
LOG_LEVEL="error"
LOG_LEVEL="request"
LOG_LEVEL="none"
```

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