How to log all Axios external http requests in NestJS
问题 I want to be able to log each axios request with full url, headers, etc but currently didn't find a way to do so. What I did achieve so far is to writhe an Http Interceptor based on this answer export class HttpLoggerInterceptor implements NestInterceptor { intercept( context: ExecutionContext, call$: Observable<any>, ): Observable<any> { return call$.pipe( map(data => { // pipe call to add / modify header(s) after remote method const req = context.switchToHttp().getRequest(); return data; })