I would like to achieve something to this extent:
I want to audit all of my controllers participating in serving http requests to the view files.
I would like to audit each and every method on that controller and write this information to the flat file (rolling logger??).
The audit log should contain:
authenticated user
info,method called
,method parameters
,time stamp
.
I realize that this would require implementing my own controller factory to do something like this:
//policy injection call that is set up to log all the methods, called on the
//controller.
var myController = ControllerCustomerFactory<FlatRollingLogger>.Create();
what should I do next, should I inject the custom created controller somewhere else or the factory will keep track on which controller needs to be instantiated?
I was thinking Microsoft Ent Lib Policy Injection as it has been done for other auditing purposes in our company?
Any other better ideas to handle this?
merci