0.5.1 • Published 2 years ago

nestjs-unilog v0.5.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

NPM Contributor Covenant CI codecov

Description

Unilog is request context logger for NestJS.

Installation

$ npm install --save nestjs-unilog

Quick Start

import { UnilogModule, RequestContextLogger } from "nestjs-unilog"
import { Module } from "@nestjs/common"
import { NestFactory } from "@nestjs/core"

// 1. Register  UnilogModule
@Module({ imports: [UnilogModule] })
class AppModule {}

async function bootstrap() {
  const app = await NestFactory.create(AppModule)
  
  // 2. Use RequestContextLogger
  app.useLogger(app.get(RequestContextLogger))

  await app.listen(3000)
}

bootstrap()

Stay in touch

License

NestJS Unilog is MIT licensed.

0.5.0

2 years ago

0.5.1

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.2

3 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.0

4 years ago