| Index: runtime/vm/os_android.cc
|
| diff --git a/runtime/vm/os_android.cc b/runtime/vm/os_android.cc
|
| index c7bfcbcce6f185f1725687776eef9616b7109715..38c67cd1600d22b5e23e7f595e191d8e09e297c0 100644
|
| --- a/runtime/vm/os_android.cc
|
| +++ b/runtime/vm/os_android.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "vm/os.h"
|
|
|
| +#include <android/log.h>
|
| #include <errno.h>
|
| #include <limits.h>
|
| #include <malloc.h>
|
| @@ -152,6 +153,8 @@ void OS::Print(const char* format, ...) {
|
| va_list args;
|
| va_start(args, format);
|
| VFPrint(stdout, format, args);
|
| + // Forward to the Android log for remote access.
|
| + __android_log_vprint(ANDROID_LOG_INFO, "DartVM", format, args);
|
| va_end(args);
|
| }
|
|
|
| @@ -203,6 +206,8 @@ void OS::PrintErr(const char* format, ...) {
|
| va_list args;
|
| va_start(args, format);
|
| VFPrint(stderr, format, args);
|
| + // Forward to the Android log for remote access.
|
| + __android_log_vprint(ANDROID_LOG_ERROR, "DartVM", format, args);
|
| va_end(args);
|
| }
|
|
|
|
|