http://blog.163.com/zhuowh2006@126/blog/static/1018237242013730105546300/
android jni打印log
引入包
#include <jni.h>
#include <android/log.h>
#include <string.h>
#define LOG_TAG "LOG_TEST"
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)
char* hello = "hello";
LOGI("string %s",hello);//去字符串s%
LOGI("log test ok");