title: Shorter method for getting the name of the current method dynamically
body: <p>I'm looking for a way to get the name of the current method without having to create a blank object. Is there a way to do this? This would tidy up our logging code.</p>
  
  <p>Here is what we do now:</p>
  
  <pre><code>new Object() {}.getClass().getEnclosingMethod().getName(
  </code></pre>