title: Cannot Get Azure Node.js Logging Enabled
body: <p>I am unable to get logging to work for a node application I am deploying to Windows Azure. I am overriding the web.config with the iisnode.yml file option. </p>
  
  <p>Here's the yml file contents:</p>
  
  <pre><code>node_env: development
  nodeProcessCountPerApplication: 1
  maxConcurrentRequestsPerProcess: 1024
  maxNamedPipeConnectionRetry: 24
  namedPipeConnectionRetryDelay: 250
  maxNamedPipeConnectionPoolSize: 512
  maxNamedPipePooledConnectionAge: 30000
  asyncCompletionThreadCount: 0
  initialRequestBufferSize: 4096
  maxRequestBufferSize: 65536
  watchedFiles: *.js;iisnode.yml
  uncFileChangesPollingInterval: 5000
  gracefulShutdownTimeout: 60000
  loggingEnabled: true
  logDirectory: iisnode
  debuggingEnabled: true
  debuggerPortRange: 5058-6058
  debuggerPathSegment: debug
  maxLogFileSizeInKB: 128
  maxTotalLogFileSizeInKB: 1024
  maxLogFiles: 20
  devErrorsEnabled: true
  flushResponse: false
  enableXFF: false
  </code></pre>
  
  <p>Here's the contents of the web.config file that's being overriden:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
      &lt;system.webServer&gt;
          &lt;modules runAllManagedModulesForAllRequests="false" /&gt;
          &lt;iisnode configOverrides="iisnode.yml" debuggingEnabled="true" loggingEnabled="true" logDirectory="iisnode" devErrorsEnabled="true" nodeProcessCommandLine="&amp;quot;%programfiles(x86)%\nodejs\node.exe&amp;quot;"  /&gt;
          &lt;handlers&gt;
              &lt;add name="iisnode" path="server.js" verb="*" modules="iisnode" /&gt;
          &lt;/handlers&gt;
          &lt;rewrite&gt;
              &lt;rules&gt;
                  &lt;clear /&gt;
                  &lt;rule name="app" enabled="true" patternSyntax="ECMAScript" stopProcessing="true"&gt;
                      &lt;match url="server\.js.+" negate="true" /&gt;
                      &lt;conditions logicalGrouping="MatchAll" trackAllCaptures="false" /&gt;
                      &lt;action type="Rewrite" url="server.js" /&gt;
                  &lt;/rule&gt;
                  &lt;rule name="LogFile" patternSyntax="ECMAScript" stopProcessing="true"&gt;
                      &lt;match url="iisnode"/&gt;
                  &lt;/rule&gt;
                  &lt;rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true"&gt;
                      &lt;match url="^server.js\/debug[\/]?" /&gt;
                  &lt;/rule&gt;
                  &lt;rule name="StaticContent"&gt;
                      &lt;action type="Rewrite" url="public{{REQUEST_URI}}"/&gt;
                  &lt;/rule&gt;
                  &lt;rule name="DynamicContent"&gt;
                      &lt;conditions&gt;
                          &lt;add input="{{REQUEST_FILENAME}}" matchType="IsFile" negate="True"/&gt;
                      &lt;/conditions&gt;
                      &lt;action type="Rewrite" url="server.js"/&gt;
                  &lt;/rule&gt;
              &lt;/rules&gt;
          &lt;/rewrite&gt;
      &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I'm pretty sure I have enabled every logging option I can in both, but neither seems to be picked up by Azure during deployment and when I access the typical logging location, <a href="http://mysite.com/iisnode/index.html" rel="nofollow">http://mysite.com/iisnode/index.html</a> or <a href="http://mysite.com/iisnode/" rel="nofollow">http://mysite.com/iisnode/</a> I receive a 404 error.</p>
  
  <p>Any help or ideas would be appreciated.</p>