thank you, I think that Log4Net is useful while developing the application to track errors, record system messages etc, but I need a flexible plugin for my project as a part of a user management that will help me (site administrator) track changes the users
might have done;
you may think of it as a forum alert system, when somebody say posts a reply to the topic the system records this action into the database and later you can view his action hystory
I think database triggers are best suited for your requirement, you can log your CRUD operations in another table through a trigger which later can be presented in any report format. Albeit some people discourage trigger's use , but i've used it successfully
in d past for such audit trail purposes and as long as you keep your trigger statements short and concise u don't face any issue.
I'll review the database triggers option, but I'm still looking for the non database solution and as project independent as possible, I'll need it in the future projects, so would be cool to have a standalone .dll that allowed you to keep track of who did
what with what values etc. in a compact manner
zautashvili
Member
30 Points
53 Posts
User Action Logging Mechanism
Jun 03, 2011 07:43 AM|LINK
Hi all,
I'm going to add a user action logging mechanism to an existing system, i.e. capabilities to capture when a user changed or deleted something,
I'd like it to be system independent, which approach would you suggest?
Thank you
shashankgwl
All-Star
18926 Points
3662 Posts
Re: User Action Logging Mechanism
Jun 03, 2011 10:13 AM|LINK
All is well if it runs well.
blog
zautashvili
Member
30 Points
53 Posts
Re: User Action Logging Mechanism
Jun 03, 2011 11:49 AM|LINK
Hi,
thank you, I think that Log4Net is useful while developing the application to track errors, record system messages etc, but I need a flexible plugin for my project as a part of a user management that will help me (site administrator) track changes the users might have done;
you may think of it as a forum alert system, when somebody say posts a reply to the topic the system records this action into the database and later you can view his action hystory
Thanks again
shashankgwl
All-Star
18926 Points
3662 Posts
Re: User Action Logging Mechanism
Jun 03, 2011 01:28 PM|LINK
All is well if it runs well.
blog
zautashvili
Member
30 Points
53 Posts
Re: User Action Logging Mechanism
Jun 03, 2011 02:09 PM|LINK
Thanks Shashank,
I'll review the database triggers option, but I'm still looking for the non database solution and as project independent as possible, I'll need it in the future projects, so would be cool to have a standalone .dll that allowed you to keep track of who did what with what values etc. in a compact manner
XIII
All-Star
182789 Points
23485 Posts
ASPInsiders
Moderator
MVP
Re: User Action Logging Mechanism
Jun 03, 2011 02:16 PM|LINK
Hi,
you might want to check out Postsharp and its AOP capabilities.
Also take a look at this article: Aspect-oriented logging for .NET with PostSharp and SmartInspect.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!