How to use the ngx-logger.NgxLoggerLevel.OFF function in ngx-logger

To help you get started, we’ve selected a few ngx-logger examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github phucan1108 / letportal / src / web-portal / src / app / app.module.ts View on Github external
],
  imports: [
    ChatModule,
    BrowserModule,
    HttpClientModule,
    AppRoutingModule,
    MatCardModule,
    MatButtonModule,
    MatIconModule,
    BrowserAnimationsModule,
    MatProgressButtonsModule.forRoot(),
    SharedModule,
    NgxsStoreModule,
    LoggerModule.forRoot({
      serverLoggingUrl: '',
      level: environment.production ? NgxLoggerLevel.OFF : NgxLoggerLevel.DEBUG,
      serverLogLevel: NgxLoggerLevel.OFF
    }),
    ToastrModule.forRoot(),
    ClipboardModule,

    // Portal Module Sections
    CoreModule.forRoot(),

    EmojiPickerModule.forRoot(),
    TranslateModule.forRoot(
      {
        defaultLanguage: environment.localization.defaultLanguage,
        loader: {
          provide: TranslateLoader,
          useFactory: HttpLoaderFactory,
          deps: [HttpClient]
github phucan1108 / letportal / src / web-portal / src / app / app.module.ts View on Github external
imports: [
    ChatModule,
    BrowserModule,
    HttpClientModule,
    AppRoutingModule,
    MatCardModule,
    MatButtonModule,
    MatIconModule,
    BrowserAnimationsModule,
    MatProgressButtonsModule.forRoot(),
    SharedModule,
    NgxsStoreModule,
    LoggerModule.forRoot({
      serverLoggingUrl: '',
      level: environment.production ? NgxLoggerLevel.OFF : NgxLoggerLevel.DEBUG,
      serverLogLevel: NgxLoggerLevel.OFF
    }),
    ToastrModule.forRoot(),
    ClipboardModule,

    // Portal Module Sections
    CoreModule.forRoot(),

    EmojiPickerModule.forRoot(),
    TranslateModule.forRoot(
      {
        defaultLanguage: environment.localization.defaultLanguage,
        loader: {
          provide: TranslateLoader,
          useFactory: HttpLoaderFactory,
          deps: [HttpClient]
        }
github ChangemakerStudios / Papercut / src / Papercut.Client / src / app / app.module.ts View on Github external
MatIconModule,
  MatListModule,
  MatTooltipModule,
  MatTabsModule,
  MatCardModule,
  MatFormFieldModule } from '@angular/material';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    HttpClientModule,
    LoggerModule.forRoot({level: NgxLoggerLevel.DEBUG, serverLogLevel: NgxLoggerLevel.OFF}),
    LayoutModule,
    FlexLayoutModule,
    MatToolbarModule,
    MatButtonModule,
    MatSidenavModule,
    MatIconModule,
    MatListModule,
    MatTooltipModule,
    MatTabsModule,
    MatCardModule,
    MatFormFieldModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
github atlasmap / atlasmap / ui / src / environments / environment.prod.ts View on Github external
import { NgxLoggerLevel } from 'ngx-logger';

export const environment = {
  production: true,
  ngxLoggerConfig: {
    level: NgxLoggerLevel.OFF,
    disableConsoleLogging: true
  },
  xsrf: {
    headerName: 'ATLASMAP-XSRF-TOKEN',
    cookieName: 'ATLASMAP-XSRF-COOKIE',
    defaultTokenValue: 'awesome',
  },
  backendUrls: {
    atlasServiceUrl: 'http://localhost:8585/v2/atlas/',
    javaInspectionServiceUrl: 'http://localhost:8585/v2/atlas/java/',
    xmlInspectionServiceUrl: 'http://localhost:8585/v2/atlas/xml/',
    jsonInspectionServiceUrl: 'http://localhost:8585/v2/atlas/json/',
  },
};