platform_system_core/liblog/liblog.map.txt
Tom Cherry 0391a879f7 Move minimum log priority from libbase to liblog
See the previous commit moving SetLogger and SetAborter to liblog for
motivation.

This creates more harmony between the two mechanisms in libbase and
liblog for checking loggability.
Currently:
1) libbase filters all messages based on its minimum log priority. For
   example, if minimum log priority in libbase remained at its
   default, but a tag was specifically opted into DEBUG logs via
   log.tag.<tag>, libbase would not print this log.
2) liblog ignores libbase's minimum log priority.  For example if a
   process called SetMinimumLogPriority(WARNING) but used a library
   that logged via liblog's ALOGI macro, that log would still be
   printed even though the process intends on filtering out those INFO
   messages.

With this change:
1) If both a minimum log priority and a priority through log.tag.<tag>
   are set, then the lower of the two values is used.
2) If only one or the other is set, then that value is used.  This
   fixes the two issues described above.
3) If neither of these values are set, then the default of using INFO
   is unchanged.

Bug: 116329414
Bug: 119867234
Test: libbase and liblog minimum log priority tests
Change-Id: Icb49b30b9d93bf797470e23730ae9e537931bb6c
2020-01-21 12:14:43 -08:00

95 lines
2.6 KiB
Text

LIBLOG {
global:
android_name_to_log_id; # llndk
android_log_id_to_name; # llndk
__android_log_assert;
__android_log_buf_print;
__android_log_buf_write;
__android_log_print;
__android_log_vprint;
__android_log_write;
local:
*;
};
LIBLOG_L {
global:
android_logger_clear; # llndk
android_logger_get_id; # llndk
android_logger_get_log_readable_size; # llndk
android_logger_get_log_version; # llndk
android_logger_get_log_size; # llndk
android_logger_list_alloc; # apex llndk
android_logger_list_alloc_time; # apex llndk
android_logger_list_free; # apex llndk
android_logger_list_open; # llndk
android_logger_list_read; # apex llndk
android_logger_open; # apex llndk
android_logger_set_log_size; # llndk
};
LIBLOG_M {
global:
android_logger_get_prune_list; # llndk
android_logger_set_prune_list; # llndk
android_logger_get_statistics; # llndk
__android_log_error_write; # apex llndk
__android_log_is_loggable;
create_android_logger; # apex llndk
android_log_destroy; # apex llndk
android_log_write_list_begin; # apex llndk
android_log_write_list_end; # apex llndk
android_log_write_int32; # apex llndk
android_log_write_int64; # apex llndk
android_log_write_string8; # apex llndk
android_log_write_string8_len; # apex llndk
android_log_write_float32; # apex llndk
android_log_write_list; # apex llndk
};
LIBLOG_O {
global:
__android_log_is_loggable_len;
__android_log_is_debuggable; # apex llndk
};
LIBLOG_Q { # introduced=29
global:
__android_log_bswrite; # apex
__android_log_btwrite; # apex
__android_log_bwrite; # apex
__android_log_close; # apex
__android_log_security; # apex
android_log_reset; # llndk
android_log_parser_reset; # llndk
};
LIGLOG_R { # introduced=30
global:
__android_log_call_aborter;
__android_log_default_aborter;
__android_log_get_minimum_priority;
__android_log_logd_logger;
__android_log_security_bswrite; # apex
__android_log_set_aborter;
__android_log_set_logger;
__android_log_set_minimum_priority;
__android_log_stderr_logger;
__android_log_write_logger_data;
};
LIBLOG_PRIVATE {
global:
__android_log_pmsg_file_read;
__android_log_pmsg_file_write;
__android_logger_get_buffer_size;
__android_logger_property_get_bool;
android_openEventTagMap;
android_log_processBinaryLogBuffer;
android_log_processLogBuffer;
android_log_read_next;
android_log_write_list_buffer;
android_lookupEventTagNum;
create_android_log_parser;
};