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. Root Xperia

Minggu depan jika lancar Xperia bakal di tangan jadi mau tahu info root di mana 
bisa di dapat.



Let's your mobile device make it simple..
twitter.com/dn8008
facebook.com/dn8008
www.feedberry.com

-- 
"Indonesian Android Community [id-android]" 

2. Salam kenal - kepincut bintang

Halo semuanya, salam kenal. Nama saya Michael Adhi, penggemar gadget
yang lagi kepincut dengan Samsung Galaxy Spica. Baru saja kemarin
preorder di website Indosat setelah diracunin temen untuk upgrade si
nokiyem yang agak2 mulai koyak.

Jadi sebelum si Sammy ada ditangan mungkin saya {*filter*}tara ini jadi
hantu saja dulu gentayangan di milis.

-- 
"Indonesian Android Community [id-android]" 

Join:  http://www.***.com/ 
Moderator: id.andr...@gmail.com
Unsubscribe: id-android+unsubscr...@googlegroups.com
id android Developer:  http://www.***.com/ 
id android on FB:  http://www.***.com/ 

3. ACTION_PACKAGE_REMOVED (or We just deleted 42.)

4. Desire Browser - Shockwave Flash website adv..

5. Apk pesenan si ntil... males search!

6. ActivitNotFoundException

7. Need help with small animation