How to actually see log messages in ADT, or anywhere for that matter?

by David Karr » Mon, 20 Dec 2010 06:19:39 GMT


Sponsored Links
 I've deployed an app to my device that calls "Log.v(String, String)".
I'm using the ADT.  I have the "LogCat" view showing.

I step over the line of code that calls "Log.v()".  Nothing appears in
the LogCat view.

I haven't added any filters.  I've tried clicking the "V" toggle
button in the LogCat view, but that makes no difference.

It appears that I'm supposed to set the log level of the device. There
appears to be no way to do that from the ADT.  However, looking at the
various short articles discussing this, I believe that doing this from
the shell is supposed to do it:

  ./adb -d shell setprop log.tag.SNAPSHOT VERBOSE

Where my tag is "SNAPSHOT".  I ran this, and it returned to the prompt
without showing the usage info, so I assume it at least recognized my
input.

The line of code that is executed is this:

Log.v("SNAPSHOT", "Checking currentEffect[" + currentEffect + "]");

This line doesn't show up in the LogCat view.

What am I missing?

-- 



Re: How to actually see log messages in ADT, or anywhere for that matter?

by Kostya Vasilyev » Mon, 20 Dec 2010 06:29:28 GMT


 You could try running "adb logcat" from your computer's command line. That
would tell you if it's the device or Eclipse that is the problem. If the
device's logcat works, you will see lots of output, not just your
application's. All tags should be enabled by default.

--
Kostya Vasilyev --  http://kmansoft.wordpress.com 
20.12.2010 1:20  "David Karr" <davidmichaelk...@gmail.com>
:

-- 


Sponsored Links


Re: How to actually see log messages in ADT, or anywhere for that matter?

by David Karr » Mon, 20 Dec 2010 08:20:35 GMT


 


Ok, I can see my application's log output with "adb logcat".  I still
don't see anything in the LogCat view in Eclipse.


-- 



Re: How to actually see log messages in ADT, or anywhere for that matter?

by David Karr » Mon, 20 Dec 2010 08:38:07 GMT


 




Oh, and I just noticed I wasn't using the latest version of the SDK or
plugin.  I just reinstalled everything and now LogCat is working fine.

-- 



Other Threads

1. Paging Bapak Agus H

Pak agus, bapak orang google indonesia kah?
kalo saya ingin bertanya masalah android os ini baiknya kemana yah pak?

gregetan dgn OHD android Indonesia nih pak..
ternyata rooting MyTouch 3G ga bisa di implementasikan ke HTC Magic Indonesia..


--~--~---------~--~----~------------~-------~--~----~

2. How can I get the reversion No of my downloaded android source code

Hi All,

I get the android source code from the git repository, now I want to
trace back to the original download, How can I get the reversion No of
my downloaded android source code?

Max
--~--~---------~--~----~------------~-------~--~----~

3. donut dalvik vm

4. Determining soft input method used

5. Sending data to android dev phone using 3G connection

6. can someone help with hello world?

7. Parent style elements