Preserve libbase / liblog logs.
Previously in Android, libchrome's logging::InitLogging is called
with log_file set. update_engine depends on various Android modules
(notabily, libfs_mgr etc.) which uses libbase / liblog logging
functionality. These logs are not written to the file and often
unavailable to bug reports.
Now, in Android, setup libbase logger (which sets liblog
logger). Logs from liblog / libbase / libchrome are all re-directed to
the
custom logger, CombinedLogger, which writes to logd and/or the
persistent log file.
Test: reboot and inspect /data/misc/update_engine_log and logcat.
Bug: 147696014
Bug: 148818798
Change-Id: Ie55017f99515bf7b2443012810a14e1f3465c5d0
Merged-In: Ie55017f99515bf7b2443012810a14e1f3465c5d0
1 file changed