我正在使用 Windows azure 并且我在 Windows azure 管理门户上托管了我的应用程序,我还在 web.config 文件中启用了跟踪,即 .svc 日志,我能够在本地系统中检查 .svc 日志,但是如何检查 .svc 登录Windows Azure 管理门户?请帮助我。
1 回答
You can't see the *.svc logs in the management portal. What you can do is write those logs to a local resource and configure the diagnostic manager to pick up these files and write them to a storage account.
Christian Weyer explains in a blog post how you can do this by extending the existing XmlWriterTraceListener: Writing trace data to your beloved .svclog files in Windows Azure (aka ‘XmlWriterTraceListener in the cloud’)
Then I suggest you take a look at Neil's blog post for setting up custom logs (directories): http://convective.wordpress.com/2009/12/08/custom-diagnostics-in-windows-azure/