# nestjs-extended-logger

> An extension of the NestJS base logger

Latest version **1.7.0** (published 2020-04-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install nestjs-extended-logger
pnpm add nestjs-extended-logger
yarn add nestjs-extended-logger
bun add nestjs-extended-logger
```

## 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.7.0 |
| Published | 2020-04-28 |
| First published | 2020-03-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 17.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | RigUp |
| Maintainers | andrewrosario |
| Keywords | logger |

## Links

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

## Dependencies (2)

- [rxjs](https://npm.io/package/rxjs.md) ^6.5.4
- [winston](https://npm.io/package/winston.md) ^3.2.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.7.0 (latest) — 2020-04-28
- 1.6.0 — 2020-04-28
- 1.5.0 — 2020-03-26
- 1.4.0 — 2020-03-26
- 1.2.0 — 2020-03-25
- 1.0.3 — 2020-03-24
- 1.0.2 — 2020-03-24
- 1.0.1 — 2020-03-23
- 1.0.0 — 2020-03-23

## README

# nestjs-extended-logger

This module extends the default NestJS logger to provide additional information can customization options. Logging details are added to all mutations, queries, and routes.

## To install

1. Import IntegratedLoggerService and IntegratedLoggerInterceptor from 'nestjs-extended-logger'

main.ts
```
import {
  IntegratedLoggerService,
  IntegratedLoggerInterceptor,
} from 'nestjs-extended-logger';
```

2. Assign the logger to the IntegratedLogger

main.ts
```
  const logger = app.get<IntegratedLoggerService>(IntegratedLoggerService);
```

3. Implement the global interceptor for routes, queries, and mutations

main.ts
```
app.useGlobalInterceptors(new IntegratedLoggerInterceptor(logger));
```

4. Connect the logger to other Modules if additional or specific logging is needed using [dependency injection](https://docs.nestjs.com/techniques/logger#dependency-injection).


## To Contribute

The repo is set up with semantic UI to do automatic versioning. On PRs to master, the commit message needs to be prefixed with 'fix:', 'feat:', or other flag using the [the AngularJS commit conventions](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/) to automatically bump the version and publish.

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