feat: switch to pino for logs (#1855)

- switch to json logs in production
- add option to support http logging
This commit is contained in:
Philip Okugbe
2026-01-21 01:23:50 +00:00
committed by GitHub
parent 5cd0ba6902
commit 918f4508d2
9 changed files with 212 additions and 8 deletions
@@ -0,0 +1,9 @@
import { Module } from '@nestjs/common';
import { LoggerModule as PinoLoggerModule } from 'nestjs-pino';
import { createPinoConfig } from './pino.config';
@Module({
imports: [PinoLoggerModule.forRoot(createPinoConfig())],
exports: [PinoLoggerModule],
})
export class LoggerModule {}