Skip to content

Commit

Permalink
Added log config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuldeep-knoldus committed Jul 3, 2024
1 parent 419f938 commit be72dd4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion blogs-analyzer-ui/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ import { LoggerModule, NgxLoggerLevel } from "ngx-logger";
MatButtonModule,
HighchartsChartModule,
MarkdownModule.forRoot(),
LoggerModule.forRoot({level: NgxLoggerLevel.DEBUG, serverLogLevel: NgxLoggerLevel.ERROR})
LoggerModule.forRoot({
level: NgxLoggerLevel.DEBUG,
serverLogLevel: NgxLoggerLevel.ERROR,
disableConsoleLogging: false
})
],
providers: [],
bootstrap: [AppComponent]
Expand Down
9 changes: 8 additions & 1 deletion blogs-analyzer-ui/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
export const environment = { production: true, apiUrl: 'http://34.100.166.202/api' };
import { NgxLoggerLevel } from "ngx-logger";

export const environment = {
production: true,
apiUrl: 'http://34.100.166.202/api',
logLevel: NgxLoggerLevel.DEBUG,
serverLogLevel: NgxLoggerLevel.ERROR
};

0 comments on commit be72dd4

Please sign in to comment.