asp.net mvc log4postsharp
您好,我尝试使用 log4post Sharp 进行日志记录,据我所知,我已按照说明启动并运行它,我没有安装 postsharp,而是获取了库文件并修改了我的 cs proj 文件以定位这些文件,我也尝试在我的机器上安装postsharp。无论哪种情况,我最终都会遇到此错误
错误 5 未找到类型“Log4PostSharp.LogAttribute”所需的插件“Log4PostSharp”。
我尝试用谷歌搜索这个问题,似乎在网络上的任何地方都没有这个问题的踪迹。
我的实现与其他示例之间的一个区别是,他们使用的 postsharp dll 是 PostSharp.public,我的只是 PostSharp。我尝试搜索前一个 dll,但在任何地方都找不到它,下载的内容仅包含 PostSharp.dll。我觉得这可能是问题所在,因为我已遵循信中的所有说明来启动并运行它。有什么想法吗?
Hi Iam trying to use log4post sharp for logging purposes, As far as Iam aware I have followed the instructions to get this up and running, I have not installed postsharp, rather I got the library files and midified my cs proj file to target those file, I have also tried installing postsharp on my machine. In either case I end up with this error
Error 5 The plug-in "Log4PostSharp" required by the type "Log4PostSharp.LogAttribute" was not found.
I have tried googling this and it seems there is no trace of this issue anywhere on the web.
One difference between my implementation with other examples is that the postsharp dll that they use is PostSharp.public, mine is just PostSharp. I have tried searching for the former dll but cannot find it anywhere, the download only contains PostSharp.dll. I feel this may be the issue as I have followd all the insturctions to the letter to get this up and running. Any Ideas People?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该插件应安装在 PostSharp 搜索路径中,如 http://doc.sharpcrafters.com/postsharp/1.5/Content.aspx/PostSharp.chm/UserGuide/Platform/Advanced/SearchPath.html。
The plug-in should be installed in the PostSharp search path as documented at http://doc.sharpcrafters.com/postsharp/1.5/Content.aspx/PostSharp.chm/UserGuide/Platform/Advanced/SearchPath.html.
我没有使用过 log4post,但对于记录 Web 应用程序来说这是一个很好的建议。
“ELMAH(错误日志模块和处理程序)是一种完全可插拔的应用程序范围的错误日志记录工具。它可以动态添加到正在运行的 ASP.NET Web 应用程序,甚至机器上的所有 ASP.NET Web 应用程序,而无需任何需要重新编译或重新部署”
http://code.google.com/p/elmah /
I havnt used log4post but a nice suggestion for logging web applications.
"ELMAH (Error Logging Modules and Handlers) is an application-wide error logging facility that is completely pluggable. It can be dynamically added to a running ASP.NET web application, or even all ASP.NET web applications on a machine, without any need for re-compilation or re-deployment"
http://code.google.com/p/elmah/