登录ASP.NET MVC应用程序用户活动 [英] Log User Activity on ASP.NET MVC Application

查看:218
本文介绍了登录ASP.NET MVC应用程序用户活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有登录的ASP MVC应用程序的用户活动的好策略? (ActionFilters /的HttpModules)。

Is there A good strategy to Log the User activity on an ASP MVC App? (ActionFilters/ HTTPModules).

喜欢的东西最后用户活动(就像计算器看23分钟前),甚至连页面和控制器使用了什么样,甚至进一步被点击了哪个按钮或链接推搡。

Something like last user activity (just like StackOverflow "Seen 23 mins ago"), and even what Pages and Controllers were used, and pushing even further what buttons or links were clicked.

我已经安装ELMAH但据我知道它只是为错误记录。

I have ELMAH installed but as far as i know its just for Error Logging.

PD:谷歌Analytics(分析)是不是一种选择

PD: Google Analytics is not an option.

推荐答案

您可以尝试使用 PostSharp 方面执行日志对你来说,它的多播功能可能会派上用场的类似的东西。如果它不是一个选项,然后一个模块很可能是最容易实现的(假设你可以在管道这一点所需的用户信息)。

You could try using a PostSharp aspect to perform the logging for you, it's multi-cast functionality might come in handy for something like that. If it's not an option, then a Module would probably be the easiest to implement (assuming you can get the required user information at that point in the pipeline).

这篇关于登录ASP.NET MVC应用程序用户活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆