title: Disable logging in Node.JS
body: <p>So I want to disable logging for some of the environments for my Node.JS application (Express); is the following the best way to disable logging in Node.JS applications?</p>
  
  <pre><code>if(process.env.NODE_ENV == "production")
  {
      console.log = function(){}; 
  }
  </code></pre>
  
  <p>Does adding this piece of code in my app.js affect all the middle-wares and routes as well (I want to disable logging for whole application, routes, middle-wares,...)?</p>
  
  <p>Thanks</p>