yarn add @libs-for-dev/nestjs-typeorm-logger
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 {}