I'm using Eclipse Indigo and up until just a couple hours ago or so everything was working fine. When I just relaunched it and made a couple changes, I ran the program on my phone but my logs were not being displayed. The phone's logs are displayed in the logcat, but nothing from the project is. I have the device selected, I've tried restarting eclipse multiple times, I've reset the ADB, and I've run the commands adb usb and adb logcat (which still doesn't display my logs). I know my logs are correct: Log.e("Tag","Message"); Anyone have any other ideas?
Asked
Active
Viewed 1,195 times
0
-
Did you select you app in the list of apps on the device? – tsukimi Jun 28 '12 at 02:00
-
Are you sure the log statements are executed? Try adding log at the beginning and also try adding a filter on tag name in logcat. – Chandra Jun 28 '12 at 03:08
-
please see following answers: http://stackoverflow.com/questions/4228641/logcat-not-displaying-my-log-calls or http://stackoverflow.com/questions/2250112/why-doesnt-logcat-show-anything-in-my-android hope it works for you – Rendy Jun 28 '12 at 04:58
2 Answers
0
As it turns out, it was a stupid error on my part. I had my logs set up as: Log.e("Tag","") instead of: Log.e("","Message"). Apparently, if you have the former, it won't display to the LogCat, go figure?

rphello101
- 1,671
- 5
- 31
- 59
-
You really should use both arguments - one to identify the component that is doing the logging, the other to give the message. – Chris Stratton Jun 28 '12 at 06:15
-
Why? If i know what it is and it's only temporary, what does it matter? – rphello101 Jul 01 '12 at 04:08
0
I think, you haven't selected device or emulator , on which running your application,
In eclipse go to DDMS Perspective and select device or emulator on which you are running your application.
(Note: No need to restart the Eclipse)

Mahesh
- 2,862
- 2
- 31
- 41