Hi everyone, Bug 1624090 <https://bugzilla.mozilla.org/show_bug.cgi?id=1624090> and bug 1636888 <https://bugzilla.mozilla.org/show_bug.cgi?id=1636888> which just landed added the possibility to forward rust logging into the Gecko logger, so it can now be captured using MOZ_LOG and MOZ_LOG_FILE
A few things to keep in mind: 1. When parsing modules in MOZ_LOG, the ones containing :: are considered to be rust modules, so those are the ones we enable logging for. So if you want to log everything in a top module like neqo_transport, you will have to specify it as neqo_transport::* Example: *MOZ_LOG=timestamp,sync,nsHostResolver:5,neqo_transport::*:5,proxy:5* If you're logging things in a submodule for example neqo_transport::recovery you don't need the ::* at the end, but if it's there it will still work. So these are both accepted MOZ_LOG=timestamp,sync,neqo_transport::recovery:5 MOZ_LOG=timestamp,sync,neqo_transport::recovery::*:5 2. Due to us setting the release_max_level_info feature messages logged with debug! or trace! will not show up in non-debug builds. The way we fixed that for neqo code was to add a separate macro that logs regardless of the release_max_level. See 1611990 <https://bugzilla.mozilla.org/show_bug.cgi?id=1611990> for more info. 3. When using both MOZ_LOG and RUST_LOG, modules that are specified in MOZ_LOG will not appear in RUST_LOG. Please try it out and let me know if you run into any issues. Thanks! _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform