title: logging static methods in a parent class
body: <p>I have an abstract class Parent, with 2 subclasses A and B. Parent has one static method called do(). I am wondering if there is a way for that static method to add log info in Logger for class A when it's called as A.do() and log B when it's called as B.do(). The usual</p>
  
  <pre><code>protected final Logger LOGGER = Logger.getLogger(getClass());
  </code></pre>
  
  <p>won't work as do() is a static method so Logger needs to be static as well, but the getClass() method is obviously not static.</p>
  
  <p>Thanks.</p>