To run in the emulator you would normally set the connection string for the diagnostics to:
UseDevelopmentStorage=true
However if you use azure 2.5 sdk, there is no longer a field for connection string. Instead there is a storage account credentials configuration tool. If you look in the diagnostics.wadcfgx file there is a section for the configuration
<PrivateConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
<StorageAccount name="diagnosticlogging" key="Yjzl/0m3zyF0F6VNThdzflY408tSpsqe/6ofjFQ4gVhDylyBHvZRhXg41reSLGknWX4wXjq575bcgf++L+8DZg==" endpoint="" />
</PrivateConfig>
This just reflects what is in the configuration tool.
I have found the answer as I write this, so I'll share:
You can't do it. See http://msdn.microsoft.com/en-us/library/azure/dn873976.aspx Check out the breaking changes section: Diagnostics logs are not collected in the Azure compute emulator
Great.
UPDATE: See Justin's comment below
In response to Guarav I shall add this as the answer and accept it:
I have found the answer as I write this, so I'll share:
You can't do it. See http://msdn.microsoft.com/en-us/library/azure/dn873976.aspx Check out the breaking changes section: Diagnostics logs are not collected in the Azure compute emulator
Great.
UPDATE: See Justin's comment on the original post (above)