commit | ad9855ce2a6b9ef0e5e848d1a772689e69bb9690 | [log] [tgz] |
---|---|---|
author | Jonathon Reinhart <jrreinhart@google.com> | Fri Mar 15 06:31:20 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Mar 15 06:31:20 2024 +0000 |
tree | 2cf33edb1588e46553c45b34811860f3d77cd0a8 | |
parent | 6484e183fe1afbe0d788dbc646b502b187921e52 [diff] |
pw_log_android: Add pw_log_android_stderr This library provides a constructor function which runs before main() to configure the Android liblog to send logs to stderr instead of logd (logcat). Note that this requires Android API Level 30, which was introduced in Android 11 (R) in 2020. Test: Include in a binary with static_libs: ["libpw_log_android"] and whole_static_libs: ["pw_log_android_stderr"] Test: Verify that PW_LOG_* messages are written to stderr Bug: 328281789 Change-Id: I72e4d6cd5a07aa468f5bcf5a4bf75f7f00b0134e Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/195050 Reviewed-by: Carlos Chinchilla <cachinchilla@google.com> Pigweed-Auto-Submit: Jonathon Reinhart <jrreinhart@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.