title: How do you usually Tag log entries? (android)
body: <p>I assume most of you are aware of android.util.Log
  All logging methods accept 'String tag' as a first argument.</p>
  
  <p>And my question is <strong>How do you usually tag your logs in your applications?</strong>
  I've seen some hardcode like this:</p>
  
  <pre><code>public class MyActivity extends Activity {
      private static final String TAG = "MyActivity";
      //...
      public void method () {
          //...
          Log.d(TAG, "Some logging");
      }
  }
  </code></pre>
  
  <p>This doesn't look nice because of many reasons:</p>
  
  <ul>
  <li>You can tell me this code doesn't have hardcode, but it does.</li>
  <li>My application could have any number of classes in different packages with the same name. So it would be hard to read the log.</li>
  <li>It isn't flexible. You always have put a private field TAG into your class.</li>
  </ul>
  
  <p>Is there any neat way to get a TAG for a class?</p>