Logging Azure Startup Task to WAD

Debugging startup tasks is very challenging so it is useful to log what they are doing.  Say that you have a ServiceDefinition.csdef file that looks like this:   <?xml version=”1.0″ encoding=”utf-8″?> <ServiceDefinition name=”Foo” xmlns=”http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition” schemaVersion=”2012-10.1.8″>   <WebRole name=”Bar” vmsize=”Medium” enableNativeCodeExecution=”true”>     <Startup>       <Task commandLine=”Startup\ConfigureIIS.cmd” executionContext=”elevated” taskType=”simple” />     </Startup>     …  …