The Android logging system keeps multiple circular buffers for log messages, and not all of the log messages are sent to the default circular buffer. To see additional log messages, you can run the logcat command with the -b option, to request viewing of an alternate circular buffer. You can view any of these alternate buffers: radio — View the buffer that contains radio/telephony related messages. events — View the buffer containing events-related messages. main — View the main log buffer (default)The usage of the -b option is:[adb] logcat [-b <buffer>]Here's an example of how to view a log buffer containing radio and telephony messages:adb logcat -b radio
//Implement the JpegPictureCallback
private final class JpegPictureCallback implements PictureCallback {
public void onPictureTaken(byte[] rawData, Camera camera) {
try {
if (rawData != null) {
int rawDataLength = rawData.length;
File rawoutput = new File(Environment
.getExternalStorageDirectory().toString(),
"/test.bmp");
FileOutputStream outstream = new FileOutputStream(
rawoutput);
outstream.write(rawData);
Log.v(TAG, "JpegPictureCallback rawDataLength = "
+ rawDataLength);
jpegPictureCallbackResult = true;
} else {
jpegPictureCallbackResult = false;
}
mSnapshotDone.open();
Log.v(TAG, "Jpeg Picture callback");
} catch (Exception e) {
Log.v(TAG, e.toString());
}
}
};
我都是这么看的,要不就导出到文件中adb logcat > cts.txt
没做什么特别处理啊。
用cts-2.2-r6, cts-2.3-r2,r4等都没问题啊
自己加我都是用LOGE
某个testcase里的Log.d 全部都看不到
比如2L所添加的
自己make后你的cts是r几
你所看到的cts.txt可以举个例子给我看吗
System.out.println();
会打印到哪里为什么Log.e,v,w会不起作用
events — View the buffer containing events-related messages.
main — View the main log buffer (default)The usage of the -b option is:[adb] logcat [-b <buffer>]Here's an example of how to view a log buffer containing radio and telephony messages:adb logcat -b radio
我都是这么看的,要不就导出到文件中adb logcat > cts.txt
没做什么特别处理啊。
用cts-2.2-r6, cts-2.3-r2,r4等都没问题啊
自己加我都是用LOGE
我就打印一句话 肯定超不了
我要是不知道logcat 怎么使 就别写程序了