Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7d49cfb authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Merge "Add info about logging in Kotlin classes" into udc-qpr-dev am:...

Merge "Merge "Add info about logging in Kotlin classes" into udc-qpr-dev am: a6cc8ca9" into udc-qpr-dev-plus-aosp am: d2c9ff3e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23331755



Change-Id: I281b1820438b0b56ed9c99c38faede0e9a1f9ebb
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 950de989 d2c9ff3e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -26,6 +26,12 @@ building to check the log state (is enabled) before printing the print format st
- Non-text ProtoLogs are not currently supported with the Shell library (you can't view them with
  traces in Winscope)

### Kotlin

Protolog tool does not yet have support for Kotlin code (see [b/168581922](https://b.corp.google.com/issues/168581922)).
For logging in Kotlin, use the [KtProtoLog](frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/util/KtProtoLog.kt)
class which has a similar API to the Java ProtoLog class.

### Enabling ProtoLog command line logging
Run these commands to enable protologs for both WM Core and WM Shell to print to logcat.
```shell