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