If you've used RUST_LOG to enable logging for Rust modules, but were hoping
you could filter down to child processes only, bug 1390736 now allows you
to use RUST_LOG_CHILD to target them. This has been helpful for several of
us working on Stylo.

To use, just replace RUST_LOG with RUST_LOG_CHILD and supply the same
filtering and log levels as usual.

In the process, I also wrote some notes about Rust logging in general on
the Gecko logging page[1].

If there are other env vars like this that would be helpful to target per
process / process type, let's discuss it! There might be a need for
something more general than this one-off addition.

[1]:
https://developer.mozilla.org/docs/Mozilla/Developer_guide/Gecko_Logging#Rust

- Ryan
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to