Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App (2014) Testing and Debugging The Android Log

The Android Log section...my log looks nothing like Ben's and has very little data. What's up?

When in the Android Log section, Ben discusses the log and shows that his log has a lot of data. Mine does not. It also shows no entries that look like the ones he is getting. why?

Shantanu Jain
Shantanu Jain
2,389 Points

yes, I have the same problem...even though I'm not sure this is a problem....The following is what I have in my log:

11-20 04:33:45.530 836-836/com.teamtreehouse.funfacts D/FunFactsActivity﹕ We're logging from onCreate() method!

11-20 04:33:45.760 836-836/com.teamtreehouse.funfacts D/﹕ HostConnection::get() New Host Connection established 0xb72b9f58, tid 836

11-20 04:33:45.930 836-836/com.teamtreehouse.funfacts W/EGL_emulation﹕ eglSurfaceAttrib not implemented

11-20 04:33:45.940 836-836/com.teamtreehouse.funfacts D/OpenGLRenderer﹕ Enabling debug mode 0

1 Answer

You may see more or less data in the log depending on:

  • what apps you are run (other apps, including system apps, running in the background can have logs also)
  • the type of device you have (this related to preloaded system apps showing logs)

Also, to make sure you are seeing the logs for your app, be sure to set the filter dropdown to the one that matches your app's "package name", or at least "No Filters" to see a lot more logs. This dropdown I'm talking about is to the right of where you can manually input a filter, as shown in the video.