android:enable-log
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
android:enable-log [2010/04/29 23:09] – percy | android:enable-log [2016/05/05 13:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== 打开Android C文件中的LOG ====== | ====== 打开Android C文件中的LOG ====== | ||
- | 可以一次打开,也可以分别打开: | + | 可以一次打开LOGV,LOGI,LOGD,也可以分别打开: |
<code > | <code > | ||
#undef NDEBUG | #undef NDEBUG | ||
Line 13: | Line 13: | ||
举例,如果要看AndroidRuntime的LOGI和LOGD,可以有这样2种写法: | 举例,如果要看AndroidRuntime的LOGI和LOGD,可以有这样2种写法: | ||
- | | + | ==== 方法一 ==== |
+ | NDEBUG-LOG_NDEBUG=LOG_NIDEBUG +LOG_NIDEBUG | ||
< | < | ||
#define LOG_TAG " | #define LOG_TAG " | ||
Line 22: | Line 24: | ||
</ | </ | ||
- | - | + | ==== 方法二 ==== |
+ | LOG_NIDEBUG +LOG_NIDEBUG | ||
< | < | ||
#define LOG_TAG " | #define LOG_TAG " |
/var/www/dokuwiki/wiki/data/attic/android/enable-log.1272553755.txt.gz · Last modified: 2016/05/05 13:06 (external edit)