How to implement debug logs in Android's JNI
<p>I am trying to implement debug logs in the following file in the android code.</p>

<blockquote>
  <blockquote>
    <p>frameworks/base/services/jni/com_android_server_BatteryService.cpp</p>
  </blockquote>
</blockquote>

<p>I have tried LOGE and __android_log_write(), however things doesn't work.
I have also tried to create a text file in the filesystem and then write it, however 
this also didnt work. </p>
