参考: http://developer.android.com/guide/developing/tools/adb.html
LOG等级:
- The priority is one of the following character values, ordered from lowest to highest priority:
V
— Verbose (lowest priority)D
— DebugI
— Info (default priority)W
— WarningE
— ErrorF
— FatalS
— Silent (highest priority, on which nothing is ever printed)
By default, the Android system sends
stdout
andstderr
(System.out
andSystem.err
) output to/dev/null
.默认情况下, Android中的printf(), fprintf(),perror()是不会被打印出来的, 默认指向/dev/null
一般建议使用: LOGI() 或者 LOGE()