You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If my project has console.(INFO,WARN,ERROR,TRACE etc) log type and accordingly placed in the js library. for DEV purpose I would like to have INFO enabled but in prod I dont want INFO logs. There is a way to handle it with GV INFO = true/false and the INFO && console.info(xxx). But I don't like this way of writing code. Is there any way to set console.info=true/false which will make the specific type of logs visible?
Thanks,
Atul Ingale
The text was updated successfully, but these errors were encountered:
crealityeducation
changed the title
able to switch on and off particular log type
Ability to switch on and off particular log type -> console.(INFO,WARN,ERROR,TRACE etc)
Dec 6, 2021
crealityeducation
changed the title
Ability to switch on and off particular log type -> console.(INFO,WARN,ERROR,TRACE etc)
Feature request: Ability to switch on and off particular log type -> console.(INFO,WARN,ERROR,TRACE etc)
Dec 6, 2021
I think the usual methods of turning off console logs in production are typically done at a level above this specification, and that seems pretty reasonable to me. There have been somewhat-related proposals like #175, but there didn't seem to be too much appetite for this.
Given that, I'm tempted to close this unless implementers want to weigh in /cc @nchevobbe@JosephPecoraro.
If my project has console.(INFO,WARN,ERROR,TRACE etc) log type and accordingly placed in the js library. for DEV purpose I would like to have INFO enabled but in prod I dont want INFO logs. There is a way to handle it with GV INFO = true/false and the INFO && console.info(xxx). But I don't like this way of writing code. Is there any way to set console.info=true/false which will make the specific type of logs visible?
Thanks,
Atul Ingale
The text was updated successfully, but these errors were encountered: