From fbe03be7ca66499ee700ac50c4383fcf25073b0e Mon Sep 17 00:00:00 2001 From: Ly Tuan Kiet Date: Mon, 9 Sep 2024 14:52:22 +0700 Subject: [PATCH] Add logging for server bootstrap --- src/main.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.ts b/src/main.ts index 13cad38..f64cc60 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,8 +1,11 @@ import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; +import { Logger } from '@nestjs/common'; +// init log for bootstrap async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3000); + Logger.log(`Server running on http://localhost:3000`, 'Bootstrap'); } bootstrap();