Status Update
Comments
va...@google.com <va...@google.com>
aa...@google.com <aa...@google.com> #2
Do you mean something like pid:1324
where the PID of the app is 1324?
It's certainly possible but I don't see how that is useful. Each time you launch the app, it will have a different pid.
ub...@gmail.com <ub...@gmail.com> #3
I see, I suppose all other filters are essentially permanent & reusable?
I do find myself naturally gravitating toward wanting to filter by PID often, even if that filter is not permanent. Besides the points I brought up in the original issue description, PIDs are referenced in certain log messages.
Perhaps there is a place for non-reusable filters?
aa...@google.com <aa...@google.com> #4
I'm not convinced that filtering by PID is warranted.
However, given the nature of PID's, you can just use the PID number as a filter. For example: " 1411-"
or `line:" 1411-"
See screenshot.
ub...@gmail.com <ub...@gmail.com> #5
Thanks, that "line:" filter should work. I see that it does not show up as an option in the syntax pop-up. Could that be added? Otherwise no one knows about it and I will forget, too.
aa...@google.com <aa...@google.com>
aa...@google.com <aa...@google.com> #6
it does not show up as an option in the syntax pop-up
Done.
an...@google.com <an...@google.com> #7
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Ladybug | 2024.1.3 Canary 2
- Android Gradle Plugin 8.7.0-alpha02
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
ub...@gmail.com <ub...@gmail.com> #8
Thank you, I see the line filter syntax suggestion in Ladybug now.
Description
I would like to have a logcat filter for process ID (PID). b/238522110 added filtering by process name, but the discussion in b/351811546 shows that this is not robust, by design, because process name is not inherent to logcat, but computed at process runtime.
Filtering by PID offers a more robust fallback. I also find it fairly convenient & quick in the first place, because PIDs are short and I generally look at PIDs in the log a lot anyway.