title: Define macro to log error with file and line in android
body: <p>I want to make a Error Log that throw in what file and line the problem is using . But I didn't find a good reference. All code is using JNI, C++ side.</p>
  
  <p>This Try fail:</p>
  
  <pre><code>#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR  , LOG_TAG,"%s %s %s",__VA_ARGS__, __FILE__, __LINE__)
  </code></pre>
  
  <p>This one only show the msg, no the file and line</p>
  
  <pre><code>#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR  , LOG_TAG,__VA_ARGS__, __FILE__, __LINE__)
  </code></pre>
  
  <p>How could I print all the info clearly? 
  Is possible to print only some arguments from <code>__VA_ARGS__</code>, something like <code>__VA_NARG__</code> ?
  Extra info or useful references for this kind of things?</p>