On 09/01/2016 09:50, Mike Hommey wrote: > On Fri, Jan 08, 2016 at 05:32:48PM -0800, Eric Rahm wrote: >> Hi Folks- >> >> With bug 1233881 >> <https://bugzilla.mozilla.org/show_bug.cgi?id=1233881> we landed >> the ability turn on logging via prefs. >> >> Lets say you have a log module "Foo", if you add a "logging.Foo" >> pref and set it to "Debug" you will now see all output from the Foo >> log module that is of Debug and higher importance. >> >> Why is this so cool? Well now you don't need to restart your >> browser to enable logging [1]. You also don't have to set env vars >> to enable logging [2]. >> >> There is one caveat: if you don't use LazyLogModule and friends, >> you don't get dynamic logging. So go update your loggers! > > I now wish we had the same for the three or so different logging > systems in use in javascript.
I think the Thunderbird version of log4moz supports using logging prefs in this way since forever. So it's now down to two? Phil -- Philip Chee <phi...@aleytys.pc.my>, <philip.c...@gmail.com> http://flashblock.mozdev.org/ http://xsidebar.mozdev.org Guard us from the she-wolf and the wolf, and guard us from the thief, oh Night, and so be good for us to pass. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform