问题描述
有什么办法,我可以查看机器人工作室我打印报表不显示时间和目录?这是非常分散,很难调试时,该文本是占用这么大的空间。
Is there any way that I can view my print statements in android studio without displaying the time and directory? It's extremely distracting and hard to debug when that text is taking up so much space.
推荐答案
在Android的监控视图中的Android工作室(对1.3版进行测试),在logcat中选项卡里面的垂直工具栏,你会发现一个齿轮状工具栏按钮。单击,你会得到与复选框一个配置LogCat中标题对话框,让你打开和关闭各条被显示的内容:
In the Android Monitor view in Android Studio (tested on Version 1.3), in the vertical toolbar inside the "logcat" tab, you will find a gear-shaped toolbar button. Click that, and you will get a "Configure LogCat Header" dialog with checkboxes to allow you to toggle on and off various pieces of what gets displayed:
取消选中您不想要的物品(例如,时间显示)。需要注意的是LogCat中不除有关您登录自己的东西表现出任何目录。我的猜测是,通过目录你是指包名。
Uncheck the items that you do not want (e.g., "Show time"). Note that LogCat does not show any "directory" except with respect to something you log yourself. My guess is that by "directory" you are referring to the package name.
这似乎不影响现有的消息,但不应影响任何将来的追加到LogCat中转录
This does not appear to affect existing messages, but should affect any future ones appended to the LogCat transcript.
这篇关于的System.out.println在Android的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!