Android Studio中不显示由包名称日志 [英] Android Studio doesn't display logs by package name
问题描述
运行日志项目添加过滤器,如后应用程序:My_Package_Name
After running a project in log is added filter such as "app: My_Package_Name"
在/.idea/workspace.xml补充说:
in /.idea/workspace.xml added:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AndroidConfiguredLogFilters">
<filters>
<filter>
<option name="logLevel" value="verbose" />
<option name="logMessagePattern" value="" />
<option name="logTagPattern" value="" />
<option name="name" value="app: com.zastavok.net" />
<option name="packageNamePattern" value="com.zastavok.net" />
<option name="pid" value="" />
</filter>
</filters>
但在这个过滤器没有结果:
But in this filter no results:
但是,如果我更改过滤器,以无过滤器,显示所有的结果:
But if I change filter to "No Filters", all results are displayed:
如何通过程序包原木解决这个问题?
How to solve this problem with logs by Package_Name?
推荐答案
日志不显示,因为我的应用程序不会在显示过程。
Logs wasn't display because my app doesn't display in process.
所以最后我得到了它的工作,方法是:
点击
So finally I got it working, by: Click on
检查显示所有程序复选框!
Checking 'Show all processes' checkbox!
但你在问题中看到,复选框是在开头,所以有多个问题。
BUT as you see in the question, checkbox was on at the beginning, so there were multiple issues.
要总结,这些都是做其他动作:
To summarize, these are other actions to be done:
Kill all adb processes (use ps -x | grep adb and kill -9 ****)
adb start-server in terminal
Reconnect device
adb device (to make sure device is connected successfully)
Make sure Android DDMS Devices | logcat shows your app and only one device is listed.
Check Show all processes checkbox
这篇关于Android Studio中不显示由包名称日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!