How do you do "console.log()" in a NodeJS site deployed to Azure, and actually access the logs without just dumping to blob storage? We've tried several methods, but can't find a method that makes it easy to access the logs.
What we've tried:
Table Storage
We've turned on table storage through the portal, and that doesn't pick up anything. With .NET apps we can use TRACE statements and that works fine.
IISNode/Kudu
We've configured a iisnode.yml file with the following,
nodeProcessCommandLine: "D:\Program Files (x86)\nodejs\5.3.0\node.exe"
loggingEnabled: true
devErrorsEnabled: true
And added a rule to our web config file.
<rule name="LogFile" patternSyntax="ECMAScript" stopProcessing="true">
<match url="iisnode"/>
</rule>
This seems to dump data to some files in Kudu, accessable from:
https://sitename.scm.azurewebsites.net/DebugConsole
Files located at: Home\Application\LogFiles
BUT... how do you access the index.html file, without downloading it??? Even after pulling it.... its incredibly difficult to read through and not very helpful.
So, the Question:
How do you get Node logging configured in Azure, that provides the logs in an easy to read way?