summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2016-03-08 18:18:26 -0600
committerMark Salyzyn2017-02-08 17:07:06 -0600
commit71002885325be3a0c4a0d09a6a6ad9b14531bdd7 (patch)
tree280af7329dba542f40eaab69a29e19ccd08aadd6 /liblog/Android.bp
parent96432fc6655fe035d0e66e593ffaf58856e1a826 (diff)
downloadplatform-system-core-71002885325be3a0c4a0d09a6a6ad9b14531bdd7.tar.gz
platform-system-core-71002885325be3a0c4a0d09a6a6ad9b14531bdd7.tar.xz
platform-system-core-71002885325be3a0c4a0d09a6a6ad9b14531bdd7.zip
liblog: add local_logger
- Create the local-only logger module - Add LOGGER_LOCAL flag to android_set_log_frontend to enable - Permit log reader for host compilation android_set_log_frontend(LOGGER_LOCAL) will result in logs going into application local memory. logcat can not retrieve the data, the user must utilize the log reading interface directly to acquire their own logs. Some local logger tests dropped as they represent testing other liblog facilities. Other local logger tests dropped because we make the conscious decision to not support LOG_ID_SECURITY logging. ToDo: Some local logger tests dropped because of missing functionality associated with blocking reader. Test: gTest libcutils-tests, logd-unit-tests, liblog-unit-tests, logcat-unit-tests, liblog-benchmarks and CtsLiblogTestCases_list Bug: 27405083 Change-Id: Ia23b932af9e05756eaa60bab9139876b14faf72d
Diffstat (limited to 'liblog/Android.bp')
-rw-r--r--liblog/Android.bp5
1 files changed, 3 insertions, 2 deletions
diff --git a/liblog/Android.bp b/liblog/Android.bp
index cd6784559..310dbf4c3 100644
--- a/liblog/Android.bp
+++ b/liblog/Android.bp
@@ -15,12 +15,15 @@
15// 15//
16 16
17liblog_sources = [ 17liblog_sources = [
18 "config_read.c",
18 "config_write.c", 19 "config_write.c",
20 "local_logger.c",
19 "log_event_list.c", 21 "log_event_list.c",
20 "log_event_write.c", 22 "log_event_write.c",
21 "log_ratelimit.cpp", 23 "log_ratelimit.cpp",
22 "logger_lock.c", 24 "logger_lock.c",
23 "logger_name.c", 25 "logger_name.c",
26 "logger_read.c",
24 "logger_write.c", 27 "logger_write.c",
25 "logprint.c", 28 "logprint.c",
26] 29]
@@ -30,14 +33,12 @@ liblog_host_sources = [
30] 33]
31liblog_target_sources = [ 34liblog_target_sources = [
32 "event_tag_map.cpp", 35 "event_tag_map.cpp",
33 "config_read.c",
34 "log_time.cpp", 36 "log_time.cpp",
35 "properties.c", 37 "properties.c",
36 "pmsg_reader.c", 38 "pmsg_reader.c",
37 "pmsg_writer.c", 39 "pmsg_writer.c",
38 "logd_reader.c", 40 "logd_reader.c",
39 "logd_writer.c", 41 "logd_writer.c",
40 "logger_read.c",
41] 42]
42 43
43// Shared and static library for host and device 44// Shared and static library for host and device