# @cpoclinch/logger

> This is a logger implementation

Latest version **1.0.5** (published 2022-04-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install @cpoclinch/logger
pnpm add @cpoclinch/logger
yarn add @cpoclinch/logger
bun add @cpoclinch/logger
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2022-04-19 |
| First published | 2022-04-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 22.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | cpoclinch |
| Maintainers | cpoclinch |

## Links

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

## Dependencies (2)

- [express](https://npm.io/package/express.md) ^4.17.3
- [winston](https://npm.io/package/winston.md) ^3.7.2

## Recent versions

- 1.0.5 (latest) — 2022-04-19
- 1.0.4 — 2022-04-19
- 1.0.3 — 2022-04-19
- 1.0.2 — 2022-04-19
- 1.0.1 — 2022-04-19
- 1.0.0 — 2022-04-19

## README

# Logger

This is a logger implementation based on Winston

### How to use

Install npm package

```sh
yarn add @cpoclinch/logger
```

Import and use

```js
import { logger, getLogContext } from '@cpoclinch/logger';

logger.crit('Critical log');
logger.error(new Error('Error message'));
logger.warn('Warn log');
logger.info('Info log');
logger.debug('Debug log');

logger.info('Message', getLogContext('serviceName', { data: 'data' }, req)); // Using getLogContext
```

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