Thank you for the great news, Julien!
I haven't actually tried this out on release Fenix, but I believe it should
be possible to set the pref there too using the Multiprocess Toolbox in
about:debugging and executing
`Services.prefs.setCharPref("logging.config.modules", ...)`
Though if I understand correctly, logging is currently disabled on late
beta and release? https://bugzilla.mozilla.org/show_bug.cgi?id=1841818
On Mon, 27 May 2024 at 15:21, 'Julien Wajsberg' via [email protected]
<[email protected]> wrote:
> Hey folks,
>
> It's been notoriously difficult to get MOZ_LOG output from Firefox for
> Android (aka Fenix). Setting environment variables is cumbersome, setting
> individual preferences is painful, about:logging isn't working there
> either.
>
> That's why I implemented in bug 1894703 (
> https://bugzilla.mozilla.org/show_bug.cgi?id=1894703) another way to set
> MOZ_LOG modules using a single preference.
>
> Now it's possible to open *about:config*, and set just one preference
> *logging.config.modules* with the same MOZ_LOG syntax that you know and
> love. Note that *about:config *isn't available in Fenix Release.
>
> Then it's possible to use the Firefox Profiler to capture these log
> messages: more information about that in
> https://profiler.firefox.com/docs/#/./guide-profiling-firefox-android.
>
>
> I'd also like to thank Paul Adenot for his support while implementing this.
>
>
> Happy debugging!
>
> --
>
> Julien
>
> --
> You received this message because you are subscribed to the Google Groups "
> [email protected]" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/a9a63e41-554f-4364-b44e-491c4d41448f%40mozilla.com
> <https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/a9a63e41-554f-4364-b44e-491c4d41448f%40mozilla.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CACQYfiK7Zp7fpda%2BEwFLuae%3DZpPv5s5Jw6ux2Aaa%3DahDkVng8Q%40mail.gmail.com.