summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Salyzyn2016-02-17 18:08:13 -0600
committerMark Salyzyn2016-02-22 18:04:41 -0600
commitbd1ad049b2494c70f671dbd6a0566f30dc420d1a (patch)
treea7d5b85d21353ce657bc013921da81855c355f31 /liblog/Android.mk
parent806bb17e76d015f6192c50f20a0101573214948a (diff)
downloadplatform-system-core-bd1ad049b2494c70f671dbd6a0566f30dc420d1a.tar.gz
platform-system-core-bd1ad049b2494c70f671dbd6a0566f30dc420d1a.tar.xz
platform-system-core-bd1ad049b2494c70f671dbd6a0566f30dc420d1a.zip
liblog: event log list logging handler
Based off an initial request and effort by williamluh@google.com - Added the following functions: * Composing and Writing: android_log_context create_android_logger(uint32_t tag) int android_log_write_list_begin(android_log_context ctx) int android_log_write_list_end(android_log_context ctx) int android_log_write_int32(android_log_context ctx, int32_t value) int android_log_write_int64(android_log_context ctx, int64_t value) int android_log_write_string8(android_log_context ctx, const char *value) int android_log_write_float32(android_log_context ctx, float value) int android_log_write_list(android_log_context ctx, log_id_t id) * Reading and Interpreting: android_log_context create_android_log_parser(const char *msg, size_t len) android_log_list_element android_log_read_next(android_log_context ctx) android_log_list_element android_log_peek_next(android_log_context ctx) * Destroy context used above: int android_log_destroy(android_log_context *ctx); - Added unit gTests We moved implemented android_log_buffer_to_string() to the test since it is an alternate for already existing logprint functionality. Please move into liblog should it be of some common use, otherwise as is it is a good means of stessing the reading and interpreting handlers. Signed-off-by: Mark Salyzyn <salyzyn@google.com> Bug: 19235719 Change-Id: I4aa1927e8e6a75f0a129d15a27c891cf1ccd4f5c
Diffstat (limited to 'liblog/Android.mk')
-rw-r--r--liblog/Android.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/liblog/Android.mk b/liblog/Android.mk
index a183db83e..c7b76d87a 100644
--- a/liblog/Android.mk
+++ b/liblog/Android.mk
@@ -28,6 +28,7 @@ liblog_host_sources := logd_write.c log_event_write.c fake_log_device.c event.lo
28liblog_target_sources := logd_write.c log_event_write.c event_tag_map.c log_time.cpp log_is_loggable.c 28liblog_target_sources := logd_write.c log_event_write.c event_tag_map.c log_time.cpp log_is_loggable.c
29liblog_target_sources += logprint.c 29liblog_target_sources += logprint.c
30liblog_target_sources += log_read.c 30liblog_target_sources += log_read.c
31liblog_target_sources += log_event_list.c
31 32
32# Shared and static library for host 33# Shared and static library for host
33# ======================================================== 34# ========================================================