DEV Community

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

Collapse
 
abdurrkhalid333 profile image
Abdur Rehman Khalid

Some may be thinking that why we are not allowed to use the console.log in the production plus some other development enviornemnt as well, so the answer is that if you are fetching a lot of data from Back-End and printing that data in the Front-End in any framework then it is quite possible that, that data will again some time to get printed at the console so due to this reason we should avoid printing direct data to the console.

The other thing that has been mentioned in this article is the security risk, this also put the application on the risk as well.

This plugin looks good but it is there is a need to communicate the need and usage of this plugin to the other members of the team as well. However, I appreciate that you have bring this matter of writing console log on the production deployed application. This is a critical thing to which only a few developers pay attention, more power to you and looking forward to see some important articles from your side. Good Luck.

Collapse
 
gulshanaggarwal profile image
Gulshan Aggarwal

Thanks for the detailed explanation & lovey wishes! 🤗