Android Studio doesn't display logs by package name
Asked Answered
K

1

10

After running a project in log is added filter such as "app: My_Package_Name"

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: enter image description here

But if I change filter to "No Filters", all results are displayed: enter image description here

How to solve this problem with logs by Package_Name?

Kampmann answered 26/1, 2015 at 10:1 Comment(3)
can you use filter with just this option <option name="packageNamePattern" value="com.zastavok.net" /> ?Protrusion
@RandykaYudhistira no effectKampmann
hmm try this solution #19932487Protrusion
K
19

Logs wasn't display because my app doesn't display in process.

So finally I got it working, by: Click on

enter image description here

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
Kampmann answered 27/1, 2015 at 10:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.