Android Messagge Logging

  • Thread starter Lawrence D'Oliveiro
  • Start date
L

Lawrence D'Oliveiro

The Android documentation mentions the Log class
<http://developer.android.com/reference/android/util/Log.html> for use to
send messages to the system log (which you can view with the ‘adb logcatâ€
command). But this doesn’t seem to be necessary: I write messages to
System.err, and they appear in the log.

This
<http://developer.android.com/guide/developing/debugging/debugging-log.html>
says “By default, the Android system sends stdout and stderr (System.out and
System.err) output to /dev/null†and then proceeds to give a description of
how to change this default. I didn’t do this on my HTC, and yet I can see
stderr messages via logcat on that just fine.

Just as importantly, when my program crashes, the traceback appears in there
as well. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,539
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top