Node.js console.log doesn't work using August 2012 Azure SDK

I am following the tutorials on the Windows Azure Node.js site:

http://www.windowsazure.com/en-us/develop/nodejs/tutorials/

however my server.js.logs file isn't being created?

In my server.js file I am issuing console.log statements but none are written to the log file. Why is that? Whats changed in the August SDK to prevent my logs from being written?

Or what do i need to enable in order for console.log statements to be written ?

Thanks

See https://github.com/tjanczuk/iisnode/issues/168, linked to from https://github.com/tjanczuk/iisnode/wiki/iisnode-releases (the v0.1.20 notes).

The latest Windows Azure Node.js SDK must have picked up a newer version of iisnode, and iisnode changed where it puts the log files.

Yes, iisnode now puts log files in the ~/iisnode directory, and writes an index to the log files you can browse. It also contains a new node.js script, interceptor.js which allows you to write log files to any location

You must understand that console.log in node.js is used mainly for client side logging. I just tested that when you are using console.log in node.js application running on Windows Azure stdout log file could not be created so you will not get any log.

If you want to add logging to your code which is running on a web server you should be using server side logging code and I found connect library is most powerful and useful for such purpose: https://github.com/senchalabs/Connect

As you suggested your code is running in Compute Emulator means you are creating Windows Azure Cloud Service, you should follow your the below article step by step and you will get it working:

https://www.windowsazure.com/en-us/develop/nodejs/tutorials/getting-started/

Be informed that still console.log will not show anything when your node.js code is running in Compute Emulator.