1.1.2 • Published 7 years ago
ngx-http-logger v1.1.2
NgxHttpLogger
Simple logger for HTTP requests, made with Native Angular HttpInterceptor. Angular6+ required.
Install
npm i --save-dev ngx-http-loggerExample of use
// App Module (app.module.ts)
import { HttpLoggerModule } from 'ngx-http-logger';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
HttpLoggerModule.forRoot({ excludeDomains: ['api.github.com']})
],
bootstrap: [AppComponent]
});Then just open browser console and run some requests.

Inside console group you still have access to raw response/error.

After print info error will be passed up to stream as ErrorObservable.