Socket
Book a DemoInstallSign in
Socket

ngx-http-logger

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-http-logger

Angular6 Http Logger Module. Print extended info to browser console. Useful for debug requests to API

1.1.2
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

angular2

FAQs

Package last updated on 18 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.