1.1.2 • Published 5 years ago

ngx-http-logger v1.1.2

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

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.

1.1.2

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago