liblog: Add android_set_log_frontend

android_set_log_frontend allows one to select LOGGER_DEFAULT,
LOGGER_LOGD or LOGGER_NULL, the latter allows a runtime mechanism to
turn logging on or off.  LOGGER_DEFAULT is LOGGER_LOGD.

Test: gTest liblog-unit-tests notably liblog.android_set_log_frontend
      and liblog-benchmarks before and after.
Bug: 27405083
Change-Id: I365dbee9f7d83112da0ef8d1cace748d247773c8
4 files changed
tree: 3197c93c74e50fd88b539415c6e134c6cd506134
  1. liblog/
  2. logcat/
  3. logd/
  4. logwrapper/