1.1.2 • Published 7 months ago

@libs-for-dev/nestjs-typeorm-logger v1.1.2

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
7 months ago

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 {}
1.1.2

7 months ago

1.1.1

7 months ago

1.1.0

10 months ago

1.0.0

1 year ago