请问:在Eclipse中的Android项目中,logcat添加了一个logcat filter,如何把这个logcat filter对应的所有信息保存到txt文档中?
数据很多,logcat只是显示的后面的一部分,现在想全部把标签的信息保存下来
Android logcat信息保存问题
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
2条回答
- tony4geek 2016-01-27 07:53关注
Save LogCat To A Text File
So you already know how to view LogCat in Eclipse but now you want to copy the content of LogCat and you can't do it easily from Eclipse.
To save LogCat to a text file open up a terminal window and type:
adb logcat -d > logcat.txtThis will create a file named "logcat.txt" in your current directory. The -d option indicates that you are dumping the current contents and then exiting. If you do not use this option new lines of LogCat will be appended to the file, which may be useful.
Since LogCat can get pretty large very quickly you may want to clear it every once in a while, you can do this easily from Eclipse or from a terminal window using the command:
adb logcat -cNote that running adb logcat without any options will display the contents of LogCat in your terminal window.
For fancier terminal manipulation of LogCat check out
http://developer.android.com/guide/developing/tools/adb.html#logcat解决 无用评论 打赏 举报
悬赏问题
- ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
- ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
- ¥20 有关区间dp的问题求解
- ¥15 多电路系统共用电源的串扰问题
- ¥15 slam rangenet++配置
- ¥15 有没有研究水声通信方面的帮我改俩matlab代码
- ¥15 ubuntu子系统密码忘记
- ¥15 保护模式-系统加载-段寄存器
- ¥15 电脑桌面设定一个区域禁止鼠标操作
- ¥15 求NPF226060磁芯的详细资料