diff options
author | Mark Salyzyn <salyzyn@google.com> | 2016-02-17 16:08:13 -0800 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2016-02-23 07:45:49 -0800 |
commit | 9dd6510dd09f40973b8834c5cad1217ce1c3011d (patch) | |
tree | 021f446126f4230ee55a16f0f297255231df4406 /libutils/Unicode.cpp | |
parent | ac460fc6de9607bdc04b3c3ed05d85e6b87a9f79 (diff) |
liblog: event log list logging handler
(cherry pick from commit bd1ad049b2494c70f671dbd6a0566f30dc420d1a)
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 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions