title: How to pass variable name into method (to log it)?
body: <p>I'm beginner with first question. I want to have method allowing to quickly log many parameters, so I want to have in log line variable name and value.
  Example of usage -- I put what I want to log as arguments:</p>
  
  <pre><code>fastLog(
          animation.getAnimatedValue(),
          animation.getDuration(),
          animation.getInterpolator(),
          animation.getListeners(),
          animation.getRepeatCount()
              );
  </code></pre>
  
  <p>And this method below gives me values and it works, but how to log names as well like "animation.getAnimatedValue()" next to values ?</p>
  
  <pre><code>private void fastLog(Object... obj) {
  
          for(Object o : obj) {
              String s = String.valueOf(o);
              Log.d("FastLog", s);
          }
  }
  </code></pre>
  
  <p>So the result would be:</p>
  
  <pre><code>Fastlog 1000 animation.getAnimatedValue()
  (...)
  </code></pre>