diff --git a/src/main.ts b/src/main.ts index 25cb554..bd9b728 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,3 +1,5 @@ +import { WINSTON_MODULE_NEST_PROVIDER } from 'nest-winston'; + import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; @@ -5,6 +7,8 @@ import { AppModule } from './app.module'; async function bootstrap(): Promise { const app = await NestFactory.create(AppModule); + app.useLogger(app.get(WINSTON_MODULE_NEST_PROVIDER)); + await app.listen(3000); }