I want to trace the beginning [& ending] of functions called in Java, like the following code:
public void foo() { System.out.println(\"begin of fo
You could use log4j for this:
static Logger log = Logger.getLogger( log4jExample.class.getName()); public void loggedMethod() { log.info("begin of loggedMethod()"); ... log.info("e-n-d of loggedMethod()"); }