Android LogCat

I sure wish I had found Android LogCat sooner. Even one day without it was too many. I spent three. Since becoming aware of it my Android development experience has been so much better.

Those first days working on Android were fun and exciting but left me confused by the complete lack of feedback when an application crashed. I was debugging my crashes down to the line they were dying on and still not getting any useful information.

Then I found out how to use LogCat. But not before I got burned a few times by subtle but critical mistakes.

To get the LogCat view simply go to the menu bar and select Window> Show View> Other. You will be presented with the following window, just select LogCat.

Adding LogCat to the current Eclipse Perspective

Adding LogCat

LogCat will now be added to your list of views in your current perspective. When the LogCat tab or window is active you are then presented with several more icons that allow you to filter on the log message level and create additional filters.

LogCat filter options

LogCat with only error level messages

Now all stack traces and other logging messages will be dumped to LogCat when a debug enabled Android device (virtual or physical) is attached.

You can add additional debug or logging messages of your own by using android.util.Log.

Leave a comment ?

59 Comments.

  1. tnx dude :D
    awesome blog (android noob here)

  2. Magnificent items from you, man. I’ve take into account your stuff prior to and you are simply too excellent. I actually like what you’ve bought here, really like what you are saying and the way in which by which you say it. You make it enjoyable and you still care for to keep it wise. I can not wait to learn far more from you. This is really a wonderful website.

  3. Have you considered adding several social bookmarking links to these blogs. At the very least for twitter.

  4. Just discovered this site through Yahoo, what a way to brighten up my week!

  5. I Will have to return again when my course load lets up – nonetheless I am taking your Feed so i can read your site offline. Thanks.

  6. Have you given any kind of consideration at all with translating your main website in to German? I know a few of translaters here which would certainly help you do it for free if you wanna make contact with me personally.

  7. Whenever I initially commented I clicked the Notify me whenever new comments are added checkbox and currently each time a remark is added I get four emails with the exact same comment.

  8. Mate! This blog is awesome. How do you make it look this good ?

  9. A interesting post right there mate . Thanks for it !

  10. Do youve a spam issue on this web site; I also am a blogger, and I was asking yourself your scenario; we have produced some nice strategies and we are searching to swap solutions with other folks, be sure to shoot me an e-mail if serious.

  11. If you dont mind, exactly where do you host your webpage? I am hunting for a good quality host and your site appears to be extremely fast and up almost all the time

  12. Have you given any kind of consideration at all with converting your main website in to German? I know a few of translaters right here that will would certainly help you do it for no cost if you wanna contact me personally.

  13. This is often a fantastic blog, would you be interested in working on an interview concerning just how you developed it? If so e-mail myself!

  14. Wanted to drop a comment and let you know your Feed is not functioning today. I tried adding it to my Bing reader account but got nothing.

  15. Dude. This site is awesome. How did you make it look this good ?

  16. Wow. This blog is cool! How do you make it look this good .

  17. Im getting a tiny issue. I cant get my reader to pick up your rss feed, Im using aol reader by the way.

  18. Have you given any kind of thought at all with converting your main webpage into French? I know a couple of translaters here which would certainly help you do it for free if you want to get in touch with me.

  19. Can you email me with a few tips on how you made your website look like this, I would be appreciative!

  20. If you dont mind, where do you host your web site? I am looking for a very good host and your website appears to be fast and up just about all the time

  21. Do youve a spam issue on this internet site; I also am a blogger, and I was asking yourself your situation; weve got developed some great strategies and were searching to exchange options with other people, be sure to fire me an e-mail if serious.

  22. Re: Whomever produced the comment that this was a great website actually needs to have their brain analyzed.

  23. Do youve a spam problem on this internet site; I also am a blogger, and I was questioning your scenario; we now have developed some nice techniques and we are searching to exchange options with other folks, be certain to fire me an e-mail if planning to pursue.

  24. Do you have a spam issue on this site; I also am a blogger, and I was wondering your scenario; we now have developed some good techniques and were searching to trade solutions with other people, be positive to blast me an e-mail if interested.

  25. Strange , your site turns up with a dark hue to it, what shade is the primary color on your site?

  26. A lot of of the responses on this web site dont make sense.

  27. I tried looking at your web site with my cellphone and the layout doesnt seem to be correct. Might wanna check it out on WAP as well as it seems most cellular phone layouts are not really working with your site.

  28. Have you considered adding some social bookmarking links to these sites. At the very least for youtube.

  29. Wanted to drop a remark and let you know your Rss feed isnt working today. I tried including it to my Yahoo reader account and got nothing.

  30. Whenever I originally left a comment I clicked on the Notify me any time new comments are added checkbox and now every time a comment is added I get 4 email messages with the identical comment.

  31. This blog site has a lot of extremely helpful info on it. Thanks for helping me.

  32. After I start your Rss feed it appears to be a ton of garbage, is the issue on my side?

  33. This is often a amazing blog, could you be interested in making time for an interview regarding just how you created it? If so e-mail me!

  34. Weird , your post shows up with a dark hue to it, what color is the primary color on your webpage?

  35. If you dont mind, where do you host your webpage? I am searching for a great web host and your blog appears to be extremely fast and up just about all the time

  36. Odd , your site turns up with a black hue to it, what color is the primary color on your web site?

  37. This blog site has got some really helpful stuff on it! Thank you for helping me!

  38. very useful material, all in all I imagine this is worthy of a bookmark, many thanks

  39. Awesome post ! Cheers for, commenting on my blog page dude! Ill message you soon. I did not realise that.

  40. Re: Whoever produced the comment that this was an excellent site really needs to have their brain examined.

  41. I experimented with taking a look at your website with my cellphone and the format doesnt seem to be right. Might wanna check it out on WAP as well as it seems most cellphone layouts are not working with your website.

  42. Do youve got a spam concern on this internet site; I also am a blogger, and I was wondering your scenario; we have produced some great strategies and we are searching to trade solutions with other individuals, be certain to shoot me an e-mail if interested.

  43. Im having a small problem. I cant get my reader to pickup your rss feed, Im using msn reader by the way.

  44. When I start your Rss feed it appears to be to be a lot of garbage, is the problem on my side?

  45. A lot of of the opinions on this blog dont make sense.

  46. Heya, I just hopped over to your webpage using StumbleUpon. Not somthing I might generally browse, but I liked your thoughts none the less. Thanks for making some thing worthy of reading.

  47. Wanted to drop a comment and let you know your Feed is not working today. I tried adding it to my Yahoo reader account but got nothing.

  48. I was basically wondering if you ever considered adjusting the page layout of your site? Its well written; I really like what youve got to say. But maybe you can create a little more in the way of written content so people could connect with it better. Youve got a great deal of wording for only having one or two images. Maybe you can space it out better?

  49. Wanted to drop a comment and let you know your Feed isnt working today. I tried including it to my Bing reader account and got nothing.

  50. How come you do not have your website viewable in mobile format? cant view anything in my phone.

  51. This website is really cool! How can I make one like this .

  52. This is often a excellent web site, would you be interested in making time for an interview regarding just how you created it? If so e-mail myself!

  53. I enjoy your wordpress template, where did you get a hold of it?

  54. I was wondering if you ever considered switching the page layout of your site? Its very well written; I love what youve got to state. But maybe you can create a little more in the way of written content so people could connect to it better. You have got an awful lot of wording for only having one or two photographs. Maybe you can space it out better?

  55. I experimented with looking at your blog on my ipod touch and the design does not seem to be right. Might want to check it out on WAP as well as it seems most mobile phone layouts are not really working with your web site.

  56. Although I really like this publish, I think there was an spelling error close to the end of your 3rd section.

  57. extremely helpful material, all round I imagine this is worthy of a book mark, thanks a lot

  58. Nice post . Thank you for, posting on my blog man! Ill email you soon! I did not realise that.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>