On an ASP.NET MVC website, what's the best way to implement access registration? I want to answer the following questions:
- What are the most popular pages?
- Which pages have accessed the past 24 hours?
- and etc.
I could connect to the server using Remote Desktop and filter through IIS logs myself (even using Microsoft Logfile Parser), but I would like to be able to run reports from the admin pages of my site.
What is the best way to do this? Should I:
- Add trace to all my controller methods?
- Add an IHttpFilter file (or something else) and register?
- Configure IIS (IIS7 in Windows 2008) to log into a table in my database, and then determine the NHibernate mapping for this table?
- Something else?
source share