grep worked great, thanks both.

I noticed
$ adb logcat | grep com.myappname
Picks up a couple of other internal android messages (intents etc) which
might be useful, but you can also get rid of those like this:
$ adb logcat | grep /com.myappname

Awesome, thanks again :)

2010/5/6 Kostya Vasilyev <[email protected]>

> Pipe the output of logcat through grep - if you are on Linux.
>
> Or pipe through "find" if on Windows.
>
> Like this:
>
>  adb logcat | find "com.myappname"
>>
>
> -- Kostya
>
> redders <[email protected]> писал(а) в своём письме Thu, 06 May
> 2010 22:55:32 +0400:
>
>
>  I fear the answer is no, but before I change the structure of all of
>> my log messages:
>>
>> Is there any way to do this:
>> $ adb logcat *:S com.myappname.*:V
>>
>> Or in words: I want to silence every tag that goes to logcat except
>> the ones that begin with com.myappname. Currently my classes print
>> into the log with this.getClass().getName() as the tag - typing each
>> tag out individually in the filter isn't an option, so is there anyway
>> to use the wildcard?
>>
>> The above command doesn't work, because it just silences every class,
>> including the ones I've explicitly told to be verbal.
>> I've also tried:
>>
>> $ adb logcat -s com.myappname.*:V
>> $ adb logcat com.myappname.*:V *:S
>>
>> to no avail.
>>
>> I have a feeling I might have to log in a more constant fashion. Or I
>> might just use log4J.
>> Any help/suggestions appreciated - perhaps you use a static log class?
>>
>> Let me know,
>> Cheers,
>> ~redders
>>
>>
>
> --
> Kostya Vasilyev - WiFi Manager + pretty widget -
> http://kmansoft.wordpress.com/sw
>
> --
> 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]<android-developers%[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 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

Reply via email to