I want to log every user action that change domain in my web application. when user try to create, update, delete some data the action must be save in to the user log. but when user action is list, generate report. it doesn't need to log.
I my current program, I write service log. and call that service log to each action method (performCreate, performUpdate, performDelete)
Is there any way to create single class to write user log that intercept all write action performed ?
Edit: I use Struts 1.x