title: How to get "printf" messages written in NDK application?
body: <p>if i am defining such function in java file</p>
  
  <pre><code>  /** 
     * Adds two integers, returning their sum
     */
    public native int add( int v1, int v2 );
  </code></pre>
  
  <p>so i need to code in c file </p>
  
  <pre><code>JNIEXPORT jint JNICALL Java_com_marakana_NativeLib_add
    (JNIEnv * env, jobject obj, jint value1, jint value2) {
  
    printf("\n this is log messge \n");
  
          return (value1 + value2);
  }
  </code></pre>
  
  <p>then from where this  printf will print it message ? 
  In logcate i dont get it?</p>
  
  <p>How can i debug any NDK application by putting log messages?</p>