import { Observable } from 'rxjs' ; import { CallHandler , ExecutionContext , Injectable , NestInterceptor , } from '@nestjs/common' ; import { LoggerService } from '@fc/logger' ; @ Injectable ( ) export class AppInterceptor implements NestInterceptor { constructor ( private readonly logger ) { this . logger . setContext ( this . constructor . name ) ; } async intercept ( context , next ) { const req = context . switchToHttp ( ) . getRequest ( ) ; this . logger . debug ( `${ req . method }/ ${ req . path }` ) ; return next . handle ( ) ; } }