cdcsgit / lognote

Log viewer, Android logcat viewer for Windows, Linux, Mac
https://cdcsutils.blogspot.com/search/label/Lognote
Apache License 2.0
164 stars 20 forks source link

can't filter for package name #2

Closed zxt5105515 closed 1 year ago

zxt5105515 commented 1 year ago

the pid will change when app restart ,it's annoying to find the pid then change the pid. thx

cdcsgit commented 1 year ago

To filter by package name, process information must be read periodically. There are currently no plans. It seems that you can filter by specific strings or tags.

cdcsgit commented 1 year ago

There is a workaround. If you are using Linux, run the attached script(find the package name and run logcat). If you are using another OS, you need to create a script.

Run it like this: Set "PACKAGE", "ADB", "DEVICE" values in script. ./logcat_package.sh > save_file.log Select LogNote > File > Follow menu Select the save_file.log file from the dialog

Follow mode reads appended logs from a file. logcat_package.sh.zip