facebook / flipper

A desktop debugging platform for mobile developers.
https://fbflipper.com/
MIT License
13.36k stars 952 forks source link

Add a way to easily only see logs of the selected app #326

Open cristan opened 6 years ago

cristan commented 6 years ago

What is shown in the logs screen by default is pretty much useless: there are so many logs that the logs of your app quickly scroll away.

This is easily fixed in Android Studio: select the package of your app, and select the Regex "Show only selected application". In Flipper, not so much. With a right click, you can select PID, find a log by your app and click on this PID.

This isn't very user friendly. Another problem is that the PID of your app isn't consistent, so after a reboot or when plugging in another device, you'll have to find the correct PID again.

Therefore: please add a way to easily see the logs of a specific app which has the Flipper SDK installed.

danielbuechele commented 5 years ago

That's a really good point, which we'd like to improve. We need to find a good way to know which app the logs are coming from and also handle if an app is running multiple processes.

michaelcarrano commented 5 years ago

Was just going to create a Github Issue about this.

Would be great to filter the logs based on a selected application, even if I need to type the package name myself.

Not sure if it will help in anyway but Pidcat does this: https://github.com/JakeWharton/pidcat

umasankar-yedida commented 5 years ago

I'll take this up

nubpro commented 4 years ago

What happened to this feature request?

vkotovv commented 4 years ago

@nubpro Looks like it is stalled.

troy-lamerton commented 3 years ago

Filtering by selected application is an essential feature.

Android Studio logcat: Screen Shot 2021-08-12 at 07 25 43

Choosing application to filter by is a main feature of Android Studio's logcat. I only care about logs from my application, not all this stuff from android system and other apps.

We need to find a good way to know which app the logs are coming from and also handle if an app is running multiple processes.

  1. adb shell pidof my.app.package -> prints a process id
  2. filter the logs for that process id

@danielbuechele I think pidof will print only the main application process (not sure). If people want logs from all of an app's processes, that can be a new issue.

It is surprising that this issue has been stalled for so long. Without app filtering, I personally find that Flipper is too difficult to use.