From 771f2d5428ae05c8a83b0c1954b854be0783a3ce Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 5 Jun 2015 15:42:09 -0700 Subject: [PATCH] Fix debugging-log documentation errors. ART has never supported log.redirect-stdio. Don't imply that System.out and System.err go to /dev/null. Bug: http://b/18092307 Bug: https://code.google.com/p/android/issues/detail?id=165602 Bug: https://code.google.com/p/android/issues/detail?id=62555 Change-Id: If5304a129e8941865211deb86766531925255796 --- docs/html/tools/debugging/debugging-log.jd | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/docs/html/tools/debugging/debugging-log.jd b/docs/html/tools/debugging/debugging-log.jd index d2baaf26ce84c..e222b2a05cd49 100644 --- a/docs/html/tools/debugging/debugging-log.jd +++ b/docs/html/tools/debugging/debugging-log.jd @@ -284,22 +284,8 @@ adb logcat -b radio

Viewing stdout and stderr

By default, the Android system sends stdout and stderr - (System.out and System.err) output to /dev/null. In - processes that run the Dalvik VM, you can have the system write a copy of the output to the log - file. In this case, the system writes the messages to the log using the log tags - stdout and stderr, both with priority I.

- -

To route the output in this way, you stop a running emulator/device instance and then use the - shell command setprop to enable the redirection of output. Here's how you do it:

-
-$ adb shell stop
-$ adb shell setprop log.redirect-stdio true
-$ adb shell start
-
- -

The system retains this setting until you terminate the emulator/device instance. To use the - setting as a default on the emulator/device instance, you can add an entry to - /data/local.prop on the device.

+ output to /dev/null. (The Java System.out and System.err + streams go to the log.)

Debugging Web Apps