title: How to use AOP with AspectJ for logging?
body: <p>I would like to add "trace" messages to all my public methods as follows:</p>
  
  <pre>public void foo(s:String, n:int) { // log is a log4j logger or any other library
    log.trace(String.format("Enter foo with s: %s, n: %d", s, n))
    ...
    log.trace("Exit foo") 
  }</pre>
  
  <p>Now I would like to add all those <code>log.trace</code> to my methods automatically with AOP (and byte code instrumentation). I am thinking about <code>AspectJ</code>. Does it make sense? Do you know any open-source, which does exactly that?</p>