diff options
authorMark Salyzyn2017-02-28 14:59:01 -0600
committerMark Salyzyn2017-03-08 09:17:31 -0600
commit4d99c986d9310eb5fbc29618487577d645788eec (patch)
treef765d656f2351c864f7dafa5e9e673c3f3b5ca77 /liblog/Android.bp
parente1bfafd241cc8a6c419e08248352f1a5eef46ae1 (diff)
liblog: add LOGGER_STDERR frontend
Standalone, this logger provides no end-to-end capability. Only provides a writer, no reader transport. All output goes, logcat-like, into the stderr stream. Output can be adjusted with environment variables ANDROID_PRINTF_LOG and ANDROID_LOG_TAGS. liblog_*.__android_log_bswrite_and_print___max print fails if a string member is truncated with "Binary log entry conversion failed" and -1. We expose the truncated content in the tests and in LOGGER_STDERR. The purpose of this transport selection is for command-line tools, providing a means to shunt the logs to be mixed in with the tool's error stream. Test: gTest liblog-unit-tests Bug: 27405083 Change-Id: If344b6e3e67df2dc86ce317cfad8af8e857727b7
Diffstat (limited to 'liblog/Android.bp')
1 files changed, 1 insertions, 0 deletions
diff --git a/liblog/Android.bp b/liblog/Android.bp
index 310dbf4c3..bb8c3af2b 100644
--- a/liblog/Android.bp
+++ b/liblog/Android.bp
@@ -26,6 +26,7 @@ liblog_sources = [
26 "logger_read.c", 26 "logger_read.c",
27 "logger_write.c", 27 "logger_write.c",
28 "logprint.c", 28 "logprint.c",
29 "stderr_write.c",
29] 30]
30liblog_host_sources = [ 31liblog_host_sources = [
31 "fake_log_device.c", 32 "fake_log_device.c",