WCF 健康监控类似于 ASP.NET
ASP.NET 有一个很好的功能,称为运行状况监控。一旦在 system.web/healthMonitoring
部分中定义,我们就可以记录/分析非常有用的 Web 事件。对于不使用 ASP.NET 兼容模式并托管在 IIS7/WAS 下的 WCF 服务,是否有类似的方法?
更新:我发现,在 WCF 服务的 web.config 中启用 system.web/healthMonitoring 可以获取一些 Web 事件:System.Web.HttpRuntime、1002、“应用程序正在关闭”原因:配置已更改。”。没有心跳等。我不明白如果 ASP.NET 不参与该过程,它是如何工作的,但事实就是如此。
ASP.NET has a nice feature called Health Monitoring. Once defined in system.web/healthMonitoring
section we get very useful web events to log/analyze. Are there any similar means for WCF services that don't use ASP.NET compatibility mode and hosted under IIS7/WAS ?
Update: What i've found out is that enabling system.web/healthMonitoring in WCF service's web.config allows to get some of web events: System.Web.HttpRuntime, 1002, "Application is shutting down. Reason: Configuration changed.". No heartbeats and others. I don't understand how that works if ASP.NET is not involved in the process but that's the fact.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以在客户端的配置文件中添加一些配置,就会有很多日志信息。检查以下链接
You can add some configuration to the config file of the client and will have a lot of logging information. check the below links