process . title = 'node-user' ; import { NestFactory } from '@nestjs/core' ; import { Logger as NestLogger , ValidationPipe } from '@nestjs/common' ; import { BootstrapLogger } from '@lib/logger' ; import { grpcAuth } from '@lib/utils/GrpcConfigs' ; import { AppModule } from './AppModule' ; const logger = new BootstrapLogger ( ) ; NestLogger . overrideLogger ( logger ) ; async function bootstrap ( ) { const app = await NestFactory . createMicroservice ( AppModule , grpcAuth ) ; app . useLogger ( logger ) ; app . useGlobalPipes ( new ValidationPipe ( ) ) ; await app . listenAsync ( ) ; } bootstrap ( ) . catch ( err => { logger . error ( err ) ; } ) ;