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
Anyone got logging to work?
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
  10 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
 
Ian  
View profile  
 More options Dec 3 2007, 5:23 pm
From: Ian <heads...@gmail.com>
Date: Mon, 3 Dec 2007 14:23:57 -0800 (PST)
Local: Mon, Dec 3 2007 5:23 pm
Subject: Anyone got logging to work?
Hi,

I'd like to get some kind of logging working, to help with debugging.
I've tried:
    System.out.println()
    java.util.logging.Logger.severe()
    android.util.Log.w()

I've looked in the console, and the LogCat view, and I can't find any
output.

Help...?


 
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.
oxonom  
View profile  
 More options Dec 3 2007, 5:34 pm
From: oxonom <phyrum....@sign.ch>
Date: Mon, 3 Dec 2007 14:34:36 -0800 (PST)
Local: Mon, Dec 3 2007 5:34 pm
Subject: Re: Anyone got logging to work?
Log is working over here.

Maybe you have set the filter to other than 'Warnings'?

On Dec 3, 11:23 pm, 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.
Ian  
View profile  
 More options Dec 3 2007, 6:09 pm
From: Ian <heads...@gmail.com>
Date: Mon, 3 Dec 2007 15:09:23 -0800 (PST)
Local: Mon, Dec 3 2007 6:09 pm
Subject: Re: Anyone got logging to work?
No, I've tried various filter settings in LogCat.

Is there any special thing you have to do to enable logging?  Is the
tag value special, or just a string?  Any chance of a sample code
snippet?

Cheers,

Ian

On Dec 3, 2:34 pm, oxonom <phyrum....@sign.ch> 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.
Zach Hobbs  
View profile  
 More options Dec 3 2007, 6:19 pm
From: Zach Hobbs <ho...@helloandroid.com>
Date: Mon, 3 Dec 2007 23:19:06 +0000
Local: Mon, Dec 3 2007 6:19 pm
Subject: Re: [android-developers] Anyone got logging to work?
Sometimes I have to restart eclipse to get LogCat to work...

--

Zach Hobbs
HelloAndroid.com
Android OS news, tutorials, downloads

On Monday 03 December 2007 10:23:57 pm Ian 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.
trickybit  
View profile  
 More options Dec 3 2007, 7:27 pm
From: trickybit <jmack...@gmail.com>
Date: Mon, 3 Dec 2007 16:27:42 -0800 (PST)
Local: Mon, Dec 3 2007 7:27 pm
Subject: Re: Anyone got logging to work?
The trick is that you should never exit the emulator.
To get it working, exit eclipse and the emulator... under windows,
kill the 'adb' process.
Now relaunch Eclipse, run your program.
You should see your logging (obviously, you must open the Logcat
window, the Console window isn't where the logs come out).
Now, when you are done with your test run, or want to start over, just
run (or debug) your application again.  It will show up very quickly
in the emulator (this is like Christmas for Programmers!) and logging
& debugging will work again and again.

Hope this helps.
 Jim

On Dec 3, 3:09 pm, 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.
Steve918  
View profile  
 More options Dec 3 2007, 7:57 pm
From: Steve918 <osborn.ste...@gmail.com>
Date: Mon, 3 Dec 2007 16:57:45 -0800 (PST)
Local: Mon, Dec 3 2007 7:57 pm
Subject: Re: Anyone got logging to work?
I've had problems with logcat in Eclipse.  Instead of looking at
logcat in Eclipse, try the following:

In your SDK/tools directory run: adb.exe shell
once your in the shell type: logcat

While your in the adb shell you might take some time and poke around
to get familiar with the file system.

On Dec 3, 4:23 pm, 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.
Mike Lyons  
View profile  
 More options Dec 3 2007, 8:33 pm
From: Mike Lyons <mxly...@cox.net>
Date: Mon, 3 Dec 2007 17:33:23 -0800 (PST)
Local: Mon, Dec 3 2007 8:33 pm
Subject: Re: Anyone got logging to work?
I use the Dalvik Debug Monitor to see log entries.  In the Windows
version, under the SDK directory you should have a tools directory.
Run "ddms.bat".  It will start a DOS-style console window, and another
with the DDM GUI.

Often it seems to lose the link with the emulator and/or application.
Closing and restarting the DDM makes it work again.  Sometimes "adb
kill-server" is enough, but not always.


 
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.
baldmountain  
View profile  
 More options Dec 4 2007, 7:58 am
From: baldmountain <baldmount...@gmail.com>
Date: Tue, 4 Dec 2007 04:58:12 -0800 (PST)
Local: Tues, Dec 4 2007 7:58 am
Subject: Re: Anyone got logging to work?
Log.i works fine for me.

Run:

adb help

in a terminal window to see all the good things adb will do. One is
'adb logcat' which will print all the log messages. Use adb kill-
server to stop the server rather than just killing it. If you get a
message about eclipse connecting to a instance that it doesn't know
the capabilities of you should stop the emulator, run 'adb kill-
server' and restart eclipse. Then run your app again in eclipse to
allow it to start a new emulator.

As a data point, I'm working on an intel based Mac and most things
work well. (Although I'm seeing some weirdness in the zip library and
SQLite finalizers.)

On Dec 3, 5:23 pm, 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.
Ian  
View profile  
 More options Dec 4 2007, 12:51 pm
From: Ian <heads...@gmail.com>
Date: Tue, 4 Dec 2007 09:51:28 -0800 (PST)
Local: Tues, Dec 4 2007 12:51 pm
Subject: Re: Anyone got logging to work?
On Dec 3, 3:19 pm, Zach Hobbs <ho...@helloandroid.com> wrote:

> Sometimes I have to restart eclipse to get LogCat to work...

Thanks Zach, that worked for me.  It looks like I have to close/
restart Eclipse, *then* open LogCat, *then* run my app.  (I previously
didn't have LogCat open at startup.)

Ian


 
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.
neil  
View profile  
 More options Dec 4 2007, 5:39 pm
From: neil <neil.yo...@freenet.de>
Date: Tue, 4 Dec 2007 14:39:41 -0800 (PST)
Local: Tues, Dec 4 2007 5:39 pm
Subject: Re: Anyone got logging to work?
I got best results with logging into a separate window and ignoring
the sometimes strange behavior of the eclipse logcat view.

Given a log string of "TEST" an effective filter would look like:

adb logcat -s TEST:*

Regards

On 4 Dez., 18:51, 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 »