servo/components/config
Astraea Quinn S 8473946d11
[OH] allow setting log_filter via prefs.json (#36916)
This PR allows us to set the `log_filter` via `prefs.json` as well as
commandline arguments.

Priority goes commandline > prefs.json > compile-time default.

Testing: I compiled and run servo on an OH device, and then checked the
logs:

```
hdc hilog | tee log | rg 'Set log_filter to'
```

```
05-08 15:25:59.389 55824 55993 D A00000/org.servo.servo/servoshell::prefs: Set log_filter to: Some("debug,geometry=trace")
```

Signed-off-by: Astraea Quinn Skoutelli <astraea.quinn.skoutelli@huawei.com>
2025-05-08 16:10:30 +00:00
..
macro api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
Cargo.toml Use new stylo crate renames (#35898) 2025-03-12 00:02:12 +00:00
lib.rs api: Flatten and simplify Servo preferences (#34966) 2025-01-14 13:54:06 +00:00
opts.rs Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
pref_util.rs Allow setting userscripts directly without the need of files (#35388) 2025-03-27 03:00:08 +00:00
prefs.rs [OH] allow setting log_filter via prefs.json (#36916) 2025-05-08 16:10:30 +00:00