Como obter mensagens “printf” escritas no aplicativo NDK?

se eu estou definindo essa função no arquivo java

<code>  /** 
   * Adds two integers, returning their sum
   */
  public native int add( int v1, int v2 );
</code>

então eu preciso codificar no arquivo c

<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>

então de onde esta printf irá imprimir a mensagem? Em logcate eu não entendi?

Como posso depurar qualquer aplicativo NDK colocando mensagens de log?

questionAnswers(3)

yourAnswerToTheQuestion