Questions tagged [ngx-logger]

9 questions
4
votes
2 answers

Can I override message object in ngx-logger

Is it possible to have ngx-logger use a different object to log? Currently all logs are based on the NGXLogInterface below: export class NGXLogInterface { level: NgxLoggerLevel; timestamp: string; fileName: string; lineNumber: string; …
Cragly
  • 3,554
  • 9
  • 45
  • 59
2
votes
1 answer

Configure multiple log levels in ngx-logger

I have an Angular application and looking to add ngx-logger framework where I can configure a logging level for only a specific component/class. So lets say if an Angular application has 5 different components/classes and the default Root level is…
Marquinio
  • 4,601
  • 13
  • 45
  • 68
2
votes
1 answer

Unique Logger Name per class

I my Angular application, I use NGXLogger, but the loggername is always the same [app-app-module.js:2740] regardless of where the logging takes place. If would expect the logger name to reflect the module name that has the log.debug('x') …
Ivan Sager
  • 175
  • 1
  • 2
  • 12
1
vote
1 answer

How to call a method inside a service from app.module in angular and use the values in Imports

I'm moving all the environment related data from angular to external api call so that it can be build once and deployed in multiple environments. For NGX Logger it is imported in app.module.ts and the configs for level and serverLogLevel is fetched…
Manoj kumar
  • 227
  • 6
  • 19
1
vote
2 answers

NGX Logger Server-Side Logging in Angular 8 + Asp.net WEB API 2 allways return Timestamp:0, FileName = main.js & LineNumber from main.js

I am working in Angular 8 & Asp.net WebApi 2. Angular i am calling logger in ErrorHandlerService import { ErrorHandler, Injectable, Injector } from '@angular/core'; import { AppConfigService } from '@core/app-config/app.config.service'; …
Jim Lobo
  • 471
  • 1
  • 7
  • 22
0
votes
0 answers

how to integrate ngx-logger into playwright

I'm new in TS & angular. Now I have a legacy playwright project, which I'd like to use ngx-logger for logging. According to many ngx-logger tutorials, I know there might be 3 steps to integrate: install ngx-logger npm install --save…
karl li
  • 1,316
  • 15
  • 19
0
votes
0 answers

Unknown issue error in body stream with ngx-logger requests

After introducing ngx-logger to our Angular project, we get always error error in body stream But not able to find from where it comes, which request is missing encoding Any hints on that, how we can debug or detect it?
Rebai Ahmed
  • 1,509
  • 1
  • 14
  • 21
0
votes
1 answer

How to add a custom property to a typescript interface

EDITED THE EXPLANATION: First, I am new to typescript so I am sorry if this a very basic question. I am using an existing library (ngx-logger) that I can't/want to modify. I am trying to create a service that returns a logger object configured to…
Oeg Bizz
  • 104
  • 6
0
votes
1 answer

Using MSAL for Angular and NGXLogger

I recently upgraded my Angular application to use MSAL for Angular V2.X. https://www.npmjs.com/package/@azure/msal-angular My app uses NGXLogger for logging. https://www.npmjs.com/package/ngx-logger I am getting these errors when I run my app: ERROR…
Datum Geek
  • 1,358
  • 18
  • 23