platform_system_core/include/log
Mark Salyzyn bd1ad049b2 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
2016-02-22 16:04:41 -08:00
..
event_tag_map.h Move liblog headers to system/core/include/log 2013-07-24 12:32:39 -07:00
log.h liblog: event log list logging handler 2016-02-22 16:04:41 -08:00
log_read.h liblog: Add log_time += operator 2015-01-05 16:27:54 +00:00
logd.h Add logd security buffer tag types and string write API. 2016-01-19 17:13:28 +00:00
logger.h logger.h: reduce maximum payload so sum is page size 2015-12-09 08:12:07 -08:00
logprint.h liblog: logprint add uid format modifier 2015-12-09 08:12:07 -08:00
uio.h Only Windows doesn't have <sys/uio.h>. 2014-11-25 13:27:43 -08:00