I did something similar by first retrieving the PID of the app and then 
filtering by PID.. i rather keep the tag clean and specific to what it is.

Regarding your question, it's a personal choice... i personally tag by 
logical/functional meanings in the app  (if you have a specific code path 
you'd like to follow it would get a tag of its own)  and by specific code 
layers (UI, BL, DB and etc)... logging by class name would be hard to 
follow. 


On Wednesday, May 1, 2013 1:25:11 AM UTC+3, Subodh Nijsure wrote:
>
> But I wanted to run something outside the eclipse. 
>
> Something like adb logcat | grep -i 'packagename' or adb logcat | grep 
> -i companyname from command line. 
>
>
> -Subodh 
>
> On Tue, Apr 30, 2013 at 2:04 PM, lbendlin <[email protected] <javascript:>> 
> wrote: 
> > Adding the company name is not necessary as the Eclipse debug widget 
> already 
> > gives you the option to filter by your app. 
> > 
> > 
> > On Tuesday, April 30, 2013 2:02:41 PM UTC-4, Subodh Nijsure wrote: 
> >> 
> >> I am wondering if there any good practices that people have come up 
> >> when it comes to defining TAG prefix for large android applications. 
> >> So one can easily filter your application logs. 
> >> 
> >> Currently all my code uses: 
> >> 
> >> final String TAG = MyClassName.class.getSimpleName(); 
> >> 
> >> We have just recently moved to adding our company prefix to the TAG so 
> >> we can only see log messages to our own application. 
> >> 
> >> i.e. 
> >> 
> >> final String TAG = GlobalConst.companyName + 
> >> MyClassName.class.getSimpleName(); 
> >> 
> >> Are there any other techniques people have used to define TAG for 
> log.X()? 
> >> 
> >> -Subodh 
> > 
> > -- 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Android Developers" group. 
> > To post to this group, send email to 
> > [email protected]<javascript:> 
> > To unsubscribe from this group, send email to 
> > [email protected] <javascript:> 
> > For more options, visit this group at 
> > http://groups.google.com/group/android-developers?hl=en 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Android Developers" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
> > 
> > 
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to