Output an object to the Logcat console
<p>I would like to take a look at an object, similar to a <code>print_r(an_object)</code> in php, or a <code>console.log(an_object)</code> in javascript (in browser), but for Android. </p>

<p>I tried this</p>

<pre><code>public void a_method( SomeClass the_arg )
{ 
    Log.d( "an_id" , the_arg );
}
</code></pre>

<p>This generates an error message: </p>

<blockquote>
  <p>Error:(23, 10) error: no suitable method found for d(String,View)
  method Log.d(String,String,Throwable) is not applicable
  (actual and formal argument lists differ in length)
  method Log.d(String,String) is not applicable
  (actual argument View cannot be converted to String by method invocation conversion)</p>
</blockquote>