Commit 06ce38ff authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Use AppLogger as default logger

parent 1a4ddb18
Pipeline #2439 passed with stages
in 29 seconds
......@@ -24,3 +24,5 @@ npm-debug.log
swagger-spec.json
dist/
.vscode
......@@ -7,10 +7,9 @@ import * as favicon from 'serve-favicon';
import * as path from 'path';
import { AppLogger } from './app-logger';
async function bootstrap() {
const app = await NestFactory.create(AppModule, {
logger: false,
logger: new AppLogger(),
});
app.enableCors({ credentials: true, origin: true });
......@@ -33,8 +32,6 @@ async function bootstrap() {
app.useGlobalPipes(new ValidationPipe());
app.useLogger(app.get(AppLogger));
await app.listen(3000);
}
bootstrap();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment