Skip to content

Commit

Permalink
fix: make winston default logger for nest (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
abriginets authored Feb 16, 2024
1 parent 45d8bb8 commit d60324a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { WINSTON_MODULE_NEST_PROVIDER } from 'nest-winston';

import { NestFactory } from '@nestjs/core';

import { AppModule } from './app.module';

async function bootstrap(): Promise<void> {
const app = await NestFactory.create(AppModule);

app.useLogger(app.get(WINSTON_MODULE_NEST_PROVIDER));

await app.listen(3000);
}

Expand Down

0 comments on commit d60324a

Please sign in to comment.