title: How to automatically log the entry/exit of methods in Java?
body: <p>Right now I am using <code>java.util.logging</code> to log the entry and exit points of each method in my Java project. This is very useful to me when debugging.</p>
  
  <p>I have this piece of code at the beginning of each method and a similar one at the end:</p>
  
  <pre><code>if (logger.isLoggable(Level.FINER)) {
      logger.entering(this.getClass().getName(), "methodName");
  }
  </code></pre>
  
  <p>Where "methodName" is the the name of the method (hardcoded).</p>
  
  <p><strong>So I was wondering if there is a way to do this automatically without having to include this code in every method.</strong></p>