mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This is a port of
f61746083f
.
This patch eliminates the tag "[0708/123945:INFO:builtin_natives.cc(86)]
CONSOLE" prefixing each message in sky log Android output by
implementing the Android logging directly, ie. without base LOG macros.
The log message is now written directly to stdout on Android as well as
on Linux and iOS, and is also written to android logcat tagged as
"chromium", which is the tag we use to pick up native LOG messages from
the logcat when running on unrooted device.
A user running `mojo_shell.py --sky` on a rooted device will now see:
hello
instead of
[0715/174636:INFO:builtin_natives.cc(86)] CONSOLE: hello
A user running `mojo_shell.py --sky` on unrooted device will now see:
I/chromium(29585): hello
instead of
I/chromium(26587): [0715/174636:INFO:builtin_natives.cc(86)] CONSOLE: hello
Fixes #317.
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1237403002 .