@libs-for-dev/nestjs-typeorm-logger
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

NestJS TypeORM logger implementation

Installation

yarn add @libs-for-dev/nestjs-typeorm-logger

Usage

import { TypeormLogger } from '@libs-for-dev/nestjs-typeorm-logger'

@Module({
  imports: [
    TypeOrmModule.forRootAsync({
      inject: [PinoLogger],
      useFactory: (logger: PinoLogger): TypeOrmModuleOptions => {
        return {
          logger: new TypeormLogger(logger),
          // other TypeORM options
        }
      },
    }),
  ]
})
export class ExampleModule {}

/@libs-for-dev/nestjs-typeorm-logger/

    Package Sidebar

    Install

    npm i @libs-for-dev/nestjs-typeorm-logger

    Weekly Downloads

    209

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    5.83 kB

    Total Files

    6

    Last publish

    Collaborators

    • uwl