commit | 099cb41d6390c06e1072e42b6502db93cc816fb9 | [log] [tgz] |
---|---|---|
author | Chandru <chandruis@google.com> | Fri Jul 22 08:37:58 2022 +0000 |
committer | Chandru <chandruis@google.com> | Fri Jul 29 14:24:32 2022 +0000 |
tree | fd9ae0aade294ad9e8aa677cdd7a88cb3e3aba1c | |
parent | 447919823cfb185f6bc8ab30b593e2519a095fa7 [diff] |
Add string literal logger to LogBuffer. This also adds an exception field to the LogMessage and logs it to logcat. The new method relies on @CompileTimeConstant errorprone annotation to ensure that method is not called with string that is built dynamically. Test: atest LogBufferTest Bug: 239819049 Change-Id: I38560fb144b32f611f1d6a5b238a00cbf3bf0f7c