Skip to content

Commit e7ae301

Browse files
committed
Logging: Add a section about setting up on Android
Document that the WPE port logs to the logd service on Android, and is configured using system properties, after the two following patches: - WebKit/WebKit#47339 - WebKit/WebKit#47352
1 parent a760b22 commit e7ae301

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/Build & Debug/Logging.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,28 @@ Set the `WEBKIT_DEBUG` environment variable.
8181
WEBKIT_DEBUG=Scrolling Tools/Scripts/run-minibrowser --gtk --debug
8282
```
8383

84+
### Android
85+
86+
The WPE port can be built for Android, where it integrates with the system
87+
`logd` service. The log channel configuration is read from the
88+
`debug.log.WPEWebKit` system property, which can be set using the `setprop`
89+
command line tool:
90+
91+
```sh
92+
adb shell setprop debug.log.WPEWebKit 'WebGL,Media=error'
93+
```
94+
95+
Additionally, the `log.tag.WPEWebKit` property is used to configure a global
96+
filter for all the messages produced by WebKit:
97+
98+
```sh
99+
adb shell setprop log.tag.WPEWebKit VERBOSE
100+
```
101+
102+
The `persist.` prefix may be added to either system property to store the
103+
setting across device reboots.
104+
105+
84106
### macOS
85107

86108
On macOS, you can, for example, enable the `Language` log channel with these terminal commands:

0 commit comments

Comments
 (0)