ninerfreakboy / acra

Automatically exported from code.google.com/p/acra
0 stars 0 forks source link

Enhancement: logcat filtering (grep) #120

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be most awesome if we could have the logcat filtered based on a grep 
expression before it is sent. Many of us use tags such as MY_APP_Class1 and 
MY_APP_Class2, etc, and writing all of them in the logcat command line is 
annoying when there is a perfectly functional grep tool available to filter the 
output. Any chance something like this could be implemented in a future version 
of ACRA?

Original issue reported on code.google.com by skip.mor...@gmail.com on 23 Mar 2012 at 4:51

GoogleCodeExporter commented 9 years ago
The trunk codebase received 2 months ago a new feature which allows to filter 
the logcat based on the process ID.

Could this be enough ?

Original comment by kevin.gaudin on 5 Apr 2012 at 9:18

GoogleCodeExporter commented 9 years ago
Well, I don't know. Is there a way to know what your process id is at run time? 
And does it matter if your app is multi-threaded (worker threads)? How would I 
set up a filter to catch only log entries made by my app?

Original comment by skip.mor...@gmail.com on 6 Apr 2012 at 11:05

GoogleCodeExporter commented 9 years ago
Yes, ACRA gets the application process ID at run time. 
Multi threading us not an issue (they run un the same process) but multi 
process apps have to be tested. 

Original comment by kevin.gaudin on 7 Apr 2012 at 7:34

GoogleCodeExporter commented 9 years ago
I don't see how to set up the filter for process ID on the advanced usage page. 
Can you explain how to do this?

Original comment by skip.mor...@gmail.com on 8 Apr 2012 at 11:02

GoogleCodeExporter commented 9 years ago
You can test this in the new Release Candidate version: ACRA 4.3.0RC.
You just have to enable the logcatFilterByPid option:  
http://acra.googlecode.com/svn/javadoc/4.3.0RC/org/acra/annotation/ReportsCrashe
s.html#logcatFilterByPid()

Original comment by kevin.gaudin on 1 Sep 2012 at 10:44