@open-rlb/ng-app 3.0.14 → 3.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@a
3
3
  import * as i0 from '@angular/core';
4
4
  import { InjectionToken, Injectable, Inject, Optional, EventEmitter, importProvidersFrom, makeStateKey, makeEnvironmentProviders, Pipe, Input, Component, PLATFORM_ID, NgModule, Directive, inject, APP_INITIALIZER, isDevMode } from '@angular/core';
5
5
  import * as i2 from '@angular/router';
6
- import { NavigationEnd, RoutesRecognized, RouterModule, Router, provideRouter } from '@angular/router';
6
+ import { NavigationEnd, RoutesRecognized, RouterModule, Router, provideRouter, withDebugTracing } from '@angular/router';
7
7
  import * as i1$4 from '@angular/service-worker';
8
8
  import { provideServiceWorker } from '@angular/service-worker';
9
9
  import * as i1$8 from '@ngrx/effects';
@@ -157,9 +157,10 @@ const LEVEL_PRIORITIES = {
157
157
  log: 5,
158
158
  };
159
159
  class AppLoggerService {
160
- constructor() {
161
- this.currentLevel = 'log';
160
+ constructor(environment) {
161
+ this.currentLevel = 'off';
162
162
  this.timestamps = true;
163
+ this.currentLevel = environment?.logLevel || 'off';
163
164
  }
164
165
  setLogLevel(level) {
165
166
  if (!(level in LEVEL_PRIORITIES)) {
@@ -240,13 +241,16 @@ class AppLoggerService {
240
241
  console.log(`%c${prefix}`, colors.log, ...messageArgs);
241
242
  }
242
243
  }
243
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AppLoggerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
244
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AppLoggerService, deps: [{ token: RLB_CFG_ENV }], target: i0.ɵɵFactoryTarget.Injectable }); }
244
245
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AppLoggerService, providedIn: 'root' }); }
245
246
  }
246
247
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AppLoggerService, decorators: [{
247
248
  type: Injectable,
248
249
  args: [{ providedIn: 'root' }]
249
- }], ctorParameters: () => [] });
250
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
251
+ type: Inject,
252
+ args: [RLB_CFG_ENV]
253
+ }] }] });
250
254
 
251
255
  const AppContextActionsInternal = createActionGroup({
252
256
  source: 'AppContext/Internal',
@@ -3059,7 +3063,7 @@ function provideApp(app) {
3059
3063
  }, multi: true
3060
3064
  },];
3061
3065
  if (app.routes) {
3062
- providers.push(provideRouter(app.routes));
3066
+ providers.push(provideRouter(app.routes, withDebugTracing()));
3063
3067
  }
3064
3068
  if (app.providers) {
3065
3069
  providers.push(...app.providers);