I am new to angular and I am trying to add loggers to my angular 8 application. I have been following following tutorial https://medium.com/@ahmedhamedTN/enable-disable-angular-logging-based-on-production-environment-using-ngxlogger-dee531fb8374 and able to understand most of the part. But I have doubt regarding enable ngx-logger for different environment. I have two environment in my application i.e development and production. Found following solution on stackoverflow to resolve this::
How to configure logger level for ngx-logger in global config file
But problem with me is I am not able to understand solution 1 of accepted answer. Can anyone explain this solution
you can set another variable isdebug for all files.
For production —————— isdebug=1
For debug —————— isdebug=2
For mock —————— isdebug=3
Your coding. (environment.isdebug === 1 || environment.isdebug === 2) ? NgxLoggerLevel.LOG :: NgxLoggerLevel.OFF
where I need to set another variable isdebug for all files? How can I do that?