Configure Logger at app level.
This commit is contained in:
parent
95fa835496
commit
877f77babd
@ -11,7 +11,7 @@ import { AccountService } from './account.service';
|
|||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
HttpModule,
|
HttpModule,
|
||||||
NgLoggerModule.forRoot(Level.LOG),
|
NgLoggerModule,
|
||||||
RestangularModule
|
RestangularModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
@ -9,6 +9,7 @@ import { BrowserModule } from '@angular/platform-browser';
|
|||||||
import { UpgradeModule } from '@angular/upgrade/static';
|
import { UpgradeModule } from '@angular/upgrade/static';
|
||||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||||
|
|
||||||
|
import { NgLoggerModule, Level } from '@nsalaun/ng-logger';
|
||||||
import { RestangularModule } from 'ngx-restangular';
|
import { RestangularModule } from 'ngx-restangular';
|
||||||
|
|
||||||
import { AccountModule } from './accounts/account.module';
|
import { AccountModule } from './accounts/account.module';
|
||||||
@ -19,6 +20,7 @@ import { ApiBaseURL } from './app.config';
|
|||||||
BrowserModule,
|
BrowserModule,
|
||||||
UpgradeModule,
|
UpgradeModule,
|
||||||
AccountModule,
|
AccountModule,
|
||||||
|
NgLoggerModule.forRoot(Level.LOG),
|
||||||
RestangularModule.forRoot((RestangularProvider) => {
|
RestangularModule.forRoot((RestangularProvider) => {
|
||||||
RestangularProvider.setBaseUrl(ApiBaseURL);
|
RestangularProvider.setBaseUrl(ApiBaseURL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user