DEV Community

Discussion on: Say Goodbye to console.log from Production environment

Collapse
 
frontendplace profile image
Ron Jonk • Edited

And then y can check a session variable to either show or hide the logs on production is also possible. It will be very difficult in your minified code to find that needed session variable to set the log.level. Show default the loglevel “error” and not “ debug” and with the session variable set y can show all “debug” level logs