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/logger.h
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/logger.h')
-rw-r--r--liblog/logger.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/liblog/logger.h b/liblog/logger.h
index 471a52993..d94cd1467 100644
--- a/liblog/logger.h
+++ b/liblog/logger.h
@@ -196,6 +196,8 @@ LIBLOG_HIDDEN void __android_log_lock();
196LIBLOG_HIDDEN int __android_log_trylock(); 196LIBLOG_HIDDEN int __android_log_trylock();
197LIBLOG_HIDDEN void __android_log_unlock(); 197LIBLOG_HIDDEN void __android_log_unlock();
198 198
199LIBLOG_HIDDEN int __android_log_frontend;
200
199__END_DECLS 201__END_DECLS
200 202
201#endif /* _LIBLOG_LOGGER_H__ */ 203#endif /* _LIBLOG_LOGGER_H__ */