ART: Add option to use stderr logger
Add a runtime option that sets the android-base logger to StderrLogger,
forcing all further logging to go to stderr. This can be used for
better interaction with dalvikvm or dex2oat on-device.
Bug: 72998814
Test: m test-art-target-gtest-dex2oat_test
Change-Id: I18794bbed0885810f8f0480816b1c780753a9702
diff --git a/runtime/runtime_options.def b/runtime/runtime_options.def
index e78d952..4831d7d 100644
--- a/runtime/runtime_options.def
+++ b/runtime/runtime_options.def
@@ -150,5 +150,6 @@
RUNTIME_OPTIONS_KEY (bool, SlowDebug, false)
RUNTIME_OPTIONS_KEY (unsigned int, GlobalRefAllocStackTraceLimit, 0) // 0 = off
+RUNTIME_OPTIONS_KEY (Unit, UseStderrLogger)
#undef RUNTIME_OPTIONS_KEY