`HttpLoggerService` is a custom http-logger service that can be used in a NestJS to log your http request logs
npm install abs-nestjs-http-logger-serviceHttpLoggerService is a custom http-logger service that can be used in a NestJS to log your http request logs
To install the necessary dependencies, run:
``bash`
npm install abs-nestjs-http-logger-service
1. Import the HttpLoggerService into your main.ts
``typescript
import { NestFactory } from '@nestjs/core';
import { HttpLoggerService } from 'abs-nestjs-http-logger-service';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
// Use the http logger service
app.use(new HttpLoggerService().log());
await app.listen(process.env.PORT ?? 3000);
}
bootstrap();