Oct 28th, 2008, 03:34 AM
Where is the best place for logging?
I've written an application that use both spring mvc and swf. We need to log activities and access to pages, and we are using commons logging.
In mvc pages we are doing this by logging at controller classes and on web flow pages since controller are not there we have to do it at the service classes.
Is it the correct things to log activities at controllers ? or should it be given to services or dao's? What is the best practice?
Also is there a way to log event flows in swf to commons logging?
Thanks in advance,