Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
How to display the debug information
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
FeiYang  
View profile  
 More options Dec 5 2007, 2:42 am
From: FeiYang <feiyang21...@gmail.com>
Date: Tue, 4 Dec 2007 23:42:50 -0800 (PST)
Local: Wed, Dec 5 2007 2:42 am
Subject: How to display the debug information
I want to display the debug information using logger. I tried
java.util.logging.Logger, but it doesn't work.
the code just like:
Logger logger = Logger.getLogger("...");
logger.log(Level.WARNING,"...");
but i didn't get any message on console.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Parth  
View profile  
 More options Dec 5 2007, 4:55 am
From: Parth <ppart...@gmail.com>
Date: Wed, 5 Dec 2007 01:55:03 -0800 (PST)
Local: Wed, Dec 5 2007 4:55 am
Subject: Re: How to display the debug information
Go to Windows -> Preferences -> Android -> DDMS -> Advanced and set
Logging level as per your requirement.

On Dec 5, 12:42 pm, FeiYang <feiyang21...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian  
View profile  
 More options Dec 5 2007, 10:46 am
From: Ian <heads...@gmail.com>
Date: Wed, 5 Dec 2007 07:46:53 -0800 (PST)
Local: Wed, Dec 5 2007 10:46 am
Subject: Re: How to display the debug information
The trick is to use android.util.Log, not the java.util classes.
Here's some code:

        private static final String TAG = "package.ClassName";
        . . .
        Log.v(TAG, "Mouse up: clicked");

There are multiple methods in Log (Log,w, Log.d, Log.i, etc.) for
logging at different levels.

There are several ways to actually see the output; see this thread:

http://groups.google.com/group/android-developers/browse_thread/threa...

You *can* use the LogCat viewer in Eclipse (Window -> Show VIew ->
Other, then look under Android), but it's really balky.  Seems to work
if you start Eclipse, then open LogCat *before* starting the emulator.

Hope this helps,

Ian

On Dec 4, 11:42 pm, FeiYang <feiyang21...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
FeiYang  
View profile  
 More options Dec 6 2007, 11:58 pm
From: FeiYang <feiyang21...@gmail.com>
Date: Thu, 6 Dec 2007 20:58:56 -0800 (PST)
Local: Thurs, Dec 6 2007 11:58 pm
Subject: Re: How to display the debug information
Thank you!
I got it.

On 12月5日, 下午11时46分, Ian <heads...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »