Right now I am using java.util.logging to log the entry and exit points of each method in my Java project. This is very useful to me when debugging.
java.util.logging
I h
You should look at Aspect oriented programming. I would suggest Spring AOP or AspectJ as something that you should look at.
Also, here's a quick tutorial to help you get started with Logging with Spring AOP