Externalize log level in configuration file.
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user