Android cts testcase里面的log打到哪里去?

念茜 2011-07-21 12:40:14
无数Log.v .d .w ,Logcat里看不到呀,去哪了呢 ?
谁知道呀?我自己加的Log.w 在Logcat里也读不到,嗯?去哪了呢???
...全文
699 16 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhu6789888 2012-11-27
  • 打赏
  • 举报
回复
求怎么解决的!谢谢
wyx100 2011-07-24
  • 打赏
  • 举报
回复
adb logcat不就可以看到cts的log吗?
我都是这么看的,要不就导出到文件中adb logcat > cts.txt
没做什么特别处理啊。
用cts-2.2-r6, cts-2.3-r2,r4等都没问题啊
自己加我都是用LOGE
念茜 2011-07-24
  • 打赏
  • 举报
回复
自己解决
念茜 2011-07-24
  • 打赏
  • 举报
回复
[Quote=引用 12 楼 fishmen26 的回复:]
还有logcat 的buffer 是有大小的,貌似是256K,如果超过了大小,前面的部分就看不到了。
[/Quote]

我就打印一句话 肯定超不了
我要是不知道logcat 怎么使 就别写程序了
fishmen26 2011-07-24
  • 打赏
  • 举报
回复
还有logcat 的buffer 是有大小的,貌似是256K,如果超过了大小,前面的部分就看不到了。
fishmen26 2011-07-24
  • 打赏
  • 举报
回复
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
念茜 2011-07-24
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 xinqiqi123 的回复:]
有时候Log.e,v,w不起作用的时候我用的System.out.println();
[/Quote]

System.out.println();
会打印到哪里

为什么Log.e,v,w会不起作用
念茜 2011-07-24
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 ameyume 的回复:]
adb logcat不就可以看到cts的log吗?
我都是这么看的,要不就导出到文件中adb logcat > cts.txt
没做什么特别处理啊。
用cts-2.2-r6, cts-2.3-r2,r4等都没问题啊
自己加我都是用LOGE
[/Quote]

自己make后你的cts是r几
你所看到的cts.txt可以举个例子给我看吗
念茜 2011-07-24
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 fishmen26 的回复:]
能把情况说明白点吗? 全部的logcat都看不到?还是一部分看不到? 你试过把logcat导入到文件再查吗?
[/Quote]

某个testcase里的Log.d 全部都看不到
比如2L所添加的
ameyume 2011-07-23
  • 打赏
  • 举报
回复
adb logcat不就可以看到cts的log吗?
我都是这么看的,要不就导出到文件中adb logcat > cts.txt
没做什么特别处理啊。
用cts-2.2-r6, cts-2.3-r2,r4等都没问题啊
自己加我都是用LOGE
fishmen26 2011-07-23
  • 打赏
  • 举报
回复
能把情况说明白点吗? 全部的logcat都看不到?还是一部分看不到? 你试过把logcat导入到文件再查吗?
gfocean 2011-07-23
  • 打赏
  • 举报
回复
不会,帮顶下!
xinqiqi123 2011-07-23
  • 打赏
  • 举报
回复
有时候Log.e,v,w不起作用的时候我用的System.out.println();
念茜 2011-07-21
  • 打赏
  • 举报
回复
永远发帖问问题都木有人理我
念茜 2011-07-21
  • 打赏
  • 举报
回复

//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());
}
}
};




念茜 2011-07-21
  • 打赏
  • 举报
回复
厄 沉了 自己up 谁研究过cts

80,471

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧