[英]WCF Service Method Name in IIS Log
Can the IIS logs be configured to output the name of the method called for a WCF service? 可以将IIS日志配置为输出为WCF服务调用的方法的名称吗?
Right now the logs show only the name of the svc file. 现在日志只显示svc文件的名称。
Current log: 当前日志:
/myservice.svc
/myservice.svc
I would like it to show: 我希望它显示:
/myservice.svc/mymethod
/myservice.svc/mymethod
Unfortunately, there is no way to have the IIS standard logging log the method name called on a service. 遗憾的是,没有办法让IIS标准日志记录日志记录服务上调用的方法名称。 It only registers the page serviced.
它只注册服务的页面。
You can however enable WCF logging to produce an svclog file that does give complete insight in method invocations and WCF service operations. 但是,您可以启用WCF日志记录以生成svclog文件,该文件确实提供了对方法调用和WCF服务操作的完整洞察。 For details, look at: http://msdn.microsoft.com/en-us/library/ms730064.aspx .
有关详细信息,请访问: http : //msdn.microsoft.com/en-us/library/ms730064.aspx 。
Might that be acceptable? 可以接受吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.