Add logging for server bootstrap

This commit is contained in:
2024-09-09 14:52:22 +07:00
parent 6a5acdd937
commit fbe03be7ca

View File

@@ -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();