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. Display image in a frame layout on click of the image from Grid View

Hi,

I am trying to display an image in a frame layout on clicking the
image from a Grid Layout.How can i add an onClick event on the images
displayed in the Grid layout??

Thanks in advance,
Shoby

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

2. Memory overcommit

Hello,

I was rather startled recently to notice that the standard Android
kernel appears to have the memory overcommit setting set to 1. This is
--- as far as I can tell, the numbering got changed not long ago and not
all the documentation has been updated --- these means 'allow all memory
allocations even if no RAM+swap is available'.

The knock on effect of this is that running out of memory will cause
either a memory trap in the application or else the OOM killer will nuke
your entire process without warning.

Can anyone comment on this? I know, for example, that the Android patch
has modified the OOM killer. I would have thought that memory overcommit
should be disabled on this kind of embedded device?

-- 
€€  €€€€€ http://www.cowlark.com €€€€€
"They laughed at Newton. They laughed at Einstein. Of course, they
also laughed at Bozo the Clown." --- Carl Sagan


--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. detachViewFromParent / attachViewToParent /removeViewAt --- ViewGroup

4. detachViewFromParent / attachViewToParent /removeViewAt --- ViewGroup

5. detachViewFromParent / attachViewToParent /removeViewAt --- ViewGroup

6. EditText Focus Color-How to set ColorStateList

7. Write text in horizontal