title: azure node.js console.log not logging into stdout or stderr files
body: <p>I have a node.js app in azure (app service). The node.js is using the following modules</p>
  
  <pre><code>"scripts": {
    "start": "node bin\/www",
    "test": "mocha"
  },
  "dependencies": {
  "async": "^1.5.2",
  "bluebird": "^3.3.4",
  "express": "^4.13.3",
  "ioredis": "^1.15.1",
  "lodash": "^4.6.1",
  "socket.io": "^1.4.5"
  },
  "devDependencies": {
  "chai": "^3.5.0",
  "socket.io-client": "^1.4.5"
  }
  </code></pre>
  
  <p>I wanted to enable the logging of app so i set the environment variable DEBUG = * using the portal->configure->app settings. since then, the app's express and socketio logs started to appear in /LogFiles/Application folder with cryptic name xxxxxx-nnnn-stderr-nnnnnnnnnnnnnn.txt</p>
  
  <p>I added a console.log statement in one of the files in my app's lib folder</p>
  
  <pre><code>function MessageActions(redis, io) {
    ...
  }
  
  MessageActions.prototype.routeMessage = function(message) {
  
    console.log('routeMessage: ' + JSON.stringify(message)); //this is not appearing anywhere in logs
  
    var self = this;
    return Promise.join(
      self.checkUserMessage(message),
      self.checkGroupMessage(message),
      function(sendtarget, sendgroup) {
        if(!sendtarget &amp;&amp; !sendgroup) {
          var pmsg = util.inspect(message);
          throw new Error('Failed to route message: ' + pmsg);
        }
      }
    );
  } 
  </code></pre>
  
  <p>I am sure that this function is being called as i could see the below error in the stderr file</p>
  
  <p>[Error: Failed to route message: { ... }]</p>
  
  <p>But i am not able to find the log statement added with console.log anywhere in this stderr file. also, there is no stdout file in the /LogFiles/Application folder.</p>
  
  <p>How to add a log statement and where to check for it?</p>
  
  <p>My IISNode.yml file has the following two lines
  loggingEnabled: true
  devErrorsEnabled: true</p>