1

see currently in android there is one utility called logcat which shows all user space programs's log on stdout or terminal.

but here I do not want all messages in list. But i want to see only specific application's log only.

So if i need to make such utility then how can i do that?

see if i want all log from pid 132 and 324 then i will run as follows on terminal

logcat_special 132 324  

and now it will show all messgaes from that pid.

If this things are hard to implemet with pid then we can go with application name as

logcat_special vlc  
Jeegar Patel
  • 26,264
  • 51
  • 149
  • 222

1 Answers1

1

Log cat already has a package based filter . take a look here : Logcat options also according to this answer you can find app package from its pid.

So combining that with logcat you can achieve the functionality you are after.

This option should work:

logcat <your package name>:<log level>

for example logcat android.test:V

Community
  • 1
  • 1
Mr.Me
  • 9,192
  • 5
  • 39
  • 51