Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Filtering logcat output

I know there are plenty of questions like this but I'm sure my case is a little different.

I KNOW how to create filters for different apps but the problem is that my logcat seems to be printing a lot of opengl and other messages like 'JpgDecHal', 'Input', 'Posix' etc.

I want ONLY the Log.d (or .whatever) statements that I put in my code, not all this other stuff.

How do I make sure I only get what I want rather than this? All is well on most other phones.

Here are a few of the lines displayed (that I don't need):

12-31 10:56:33.921: D/IPCThreadState(2360): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE     cookie 0xcad6e8
12-31 10:56:54.367: D/My Id(2360): [email protected]
12-31 10:56:54.370: I/System.out(2360): [socket][21] connection     /192.168.1.142:80;LocalPort=33289(20000)
12-31 10:56:54.370: I/System.out(2360): [CDS]connect[/192.168.1.142:80] tm:20
12-31 10:56:54.371: D/Posix(2360): [Posix_connect Debug]Process com.nettech.Socialcommunity :80 
like image 782
Asim Avatar asked Nov 16 '25 14:11

Asim


1 Answers

In addition to all the other suggestions; here's a NOT RegEx that will show you everything except the items you list in the ():

tag:^((?!InputEventConsistency|memalloc|Resources|global|Facade[B|U]|dalvik|skia|szipinf|APACHE).)*$

Of course you need to choose your own terms. These are just examples of items I've put in the filter.

like image 112
Bill Mote Avatar answered Nov 19 '25 05:11

Bill Mote



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!