Externalize log level in configuration file.

This commit is contained in:
Alexis Lahouze
2017-07-16 10:51:54 +02:00
parent 877f77babd
commit 9910c0e0d3
2 changed files with 6 additions and 3 deletions

View File

@ -9,18 +9,18 @@ import { BrowserModule } from '@angular/platform-browser';
import { UpgradeModule } from '@angular/upgrade/static';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { NgLoggerModule, Level } from '@nsalaun/ng-logger';
import { NgLoggerModule } from '@nsalaun/ng-logger';
import { RestangularModule } from 'ngx-restangular';
import { AccountModule } from './accounts/account.module';
import { ApiBaseURL } from './app.config';
import { ApiBaseURL, LogLevel } from './app.config';
@NgModule({
imports: [
BrowserModule,
UpgradeModule,
AccountModule,
NgLoggerModule.forRoot(Level.LOG),
NgLoggerModule.forRoot(LogLevel),
RestangularModule.forRoot((RestangularProvider) => {
RestangularProvider.setBaseUrl(ApiBaseURL);