i'm using console.log debugging information in web app using node.js, expressjs , pm2. working fine :)
i want know if web app can have performance problems in production if use console.log this:
var myvariable = "enter in section of code"; console.log(myvariable);
i have read console.log synchronous , can affect performance... if real in moment (i'm using express 4), how can remove these console.log in different environments production?
i'm using pm2 (pm2 logs command) watch logs , pm2 flush clean logs.
thanks.
you use winston logging , configure transport depending on env , example use console , file tranports in development , file in production. pd: pm2 takes data std log(console)
Comments
Post a Comment