I am trying to add compliance mechanisms to a SaaS platform. I wanted to add audit trails in it. Well, the first thing I have decided is to log all the successful/un-successful attempts in authorization module. Then I need to audit all the alterations and additions and deletions along with their points of origin. I want your help in how I should go about it? Should I use a reverse proxy? I found that aspect oriented programming can be used as as well. Where to store all this logged data? (in a database or some other form)
As you might see I am not very clear about anything.