Angular6 Http Logger Module. Print extended info to browser console. Useful for debug requests to API
npm install ngx-http-loggerSimple logger for HTTP requests, made with Native Angular HttpInterceptor.
Angular6+ required.
``sh`
npm i --save-dev ngx-http-logger
ts
// App Module (app.module.ts)
import { HttpLoggerModule } from 'ngx-http-logger';@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
HttpLoggerModule.forRoot({ excludeDomains: ['api.github.com']})
],
bootstrap: [AppComponent]
});
``Inside console group you still have access to raw response/error.
After print info error will be passed up to stream as ErrorObservable.