commit | ec0f4462721f6eec38347053088ede6af2defb1e | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Thu Sep 22 10:15:01 2016 -0700 |
committer | Andreas Gampe <agampe@google.com> | Thu Sep 22 12:47:40 2016 -0700 |
tree | 111be2f16263117d62f0c54d5d510026e0b0ea37 | |
parent | 897fa1810e258b0d061c32ebcea10ad2d3970f14 [diff] |
Base: Add more log macros Add WOULD_LOG to determine whether a given severity would be logged. Add LOG_STREAM to have direct access to a logging stream. Add LOG_S variants that take a fully qualified severity. This allows complex expressions as parameters, e.g., ternaries for conditional severity levels. Add tests. Bug: 31338270 Test: m Test: mmma system/core/base && $ANDROID_HOST_OUT/nativetest64/libbase_test/libbase_test64 Change-Id: I242b960594e68caff6db9cd8aaa4ce8aaf90474c