DiagnosticMonitor in Azure Web Site

放肆的年华 提交于 2020-01-14 09:56:28

问题


Can you use the Azure DiagnosticMonitor in an Azure Web Site (not a web role) ? Or does it need a compute role?


回答1:


No, You can't use Windows Azure Diagnostics (DiagnosticsMonitor) in an Azure Website. You would need to use a compute role for that.




回答2:


No,

Azure DiagnosticsMonitor is only for Web/Worker Roles. Diagnostic in Azure WebSite is common as for any web application. As Azure WebSites use persistent storage, you can safely write a log file (having in mind you are using multi-threaded environment like in any ASP.NET/or any web application). More, you can configure additional diagnostics options in the "Configure" tab of the WebSite:

You can turn on Detailed Error Messages + Failed Request Tracing. You can download the Failed Request logs from the FTP server of your site.

You can use log4net for detailed error/trace logging in your web application (if it is ASP.NET). Some tutorial here.



来源:https://stackoverflow.com/questions/12457204/diagnosticmonitor-in-azure-web-site

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!