Click here to Skip to main content
15,878,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to maintain an eventlog for each user in my asp.net application. This application uses
custom code using sessions for all authentication purpose. I want to log events like login, logoff, invalid password attempts, account expired etc. Should I use a logging framework or a database table? Any examples would be helpful.
Posted
Comments
ChienVH 26-Sep-13 2:25am    
Log4net could be a good idea :)
zeego 26-Sep-13 3:15am    
Hello, thanks for your reply. Do you have any example for user logging with log4net?
ChienVH 26-Sep-13 3:19am    
pls try googling, currently i don't have
zeego 26-Sep-13 3:21am    
Is log4net the right choice for making logs of user activities like my requirement? Is it only for use with application errors etc. ?
ChienVH 26-Sep-13 22:47pm    
You can save every activity of your system, not errors only.

You can use sql table for your purpose as u can easily handle this approach.
 
Share this answer
 
C# provide you Environment library to get all details of the system. Similarly you cab use browser object to retrieve browser history.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900