@pliancy/nest-logger
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

@pliancy/nest-logger

Usage

// main.ts
const app = await NestFactory.create(AppModule, { bufferLogs: true })
const logger = app.get(PliancyLogger)
app.useLogger(logger)

// app.module.ts
@Module({
    imports: [PliancyLoggerModule.forRoot()],
    // The Logging interceptor adds some useful contextual data to the logger meta via logger.assign
    providers: [loggerInterceptorProvider]
})
export class AppModule {}

Readme

Keywords

none

Package Sidebar

Install

npm i @pliancy/nest-logger

Weekly Downloads

67

Version

2.0.2

License

MIT

Unpacked Size

14.3 kB

Total Files

16

Last publish

Collaborators

  • santese
  • pliancy-bot
  • justin.pliancy