禁用IIS日志记录个人的MVC控制器 [英] Disable IIS logging on individual MVC controller
本文介绍了禁用IIS日志记录个人的MVC控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个控制器中的一些特殊的动作,我不想IIS(6)记录的请求,但仅在那个特定的控制器。我希望它作为正常登录我的网站的其余部分。这甚至可能?
I have a few particular actions in a controller and I do not want IIS (6) to log the requests, but only on that particular controller. I want it to log as normally for the rest of my site. Is this even possible?
推荐答案
您将需要编写一个<一个href=\"http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/174b0649-d1ab-4f25-bc8c-e6493a09b4d3.mspx?mfr=true\"相对=nofollow>这个自定义日志记录模块。默认情况下它的全有或全无。
You will need to write a custom logging module for this. By default it's all or nothing.
这篇关于禁用IIS日志记录个人的MVC控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文