title: How can i log every method called in a class automatically with log4j
body: <p>I have a class with database calls, and I generally want to log every method called (with arguments) in this class with log4j:</p>
  
  <pre><code>logger.debug("foo(id="+id+") initiated");
  </code></pre>
  
  <p>Is it possible to do this automatically? Maybe by using some sort of annotation in start of each method instead of writing every single logger.debug?</p>
  
  <p>Today I have to update my logging.debug every time I change arguments or method name.</p>