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. Selling apps from Canada in the Market?

Does anyone have any idea when Google plans to allow us Canadian
developers to actually create accounts for selling apps in the Market?

I am completely flabbergasted that I can't set that up. Major FAIL.

- Brill Pappin

-- 

2. How to connect to a robot.

I want to control something external using Android.

Q1: Can I have two-RFCOMM channels running at the same moment? Eg,
channel 1 for voice, channel 2 for my robot. Is that possible?

Q2: I understand Android-USB doesn't support host mode, thus if I use
USB, my external device becomes more expensive. Am I missing
something?

Q3: Are there any other interfaces I might be missing? GPIO pins or
something? Android robot groups??

Thanks for any replys.
jp

-- 

3. Getting the url of an http response

4. Is WebView suitable for what I need?

5. Any way to get some equivalent to the adb log while the device is not plugged into computer?

6. how to find out memory usage by pid?

7. Eclipse setup - how can I run the Email app from the plattform source