Skip to content

Simple logger for HTTP requests, made with Native Angular HttpInterceptor. Angular7+ required.

Notifications You must be signed in to change notification settings

Komock/ngx-http-logger

Repository files navigation

NgxHttpLogger

Simple logger for HTTP requests, made with Native Angular HttpInterceptor. Angular6+ required.

Install

npm i --save-dev ngx-http-logger

Example 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.

preview

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

preview-2

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

About

Simple logger for HTTP requests, made with Native Angular HttpInterceptor. Angular7+ required.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published