Replace `prefix` with `logModule` in the `console.createInstance` calls of Thunderbird
Categories
(Thunderbird :: General, task)
Tracking
(Not tracked)
People
(Reporter: dcarver, Assigned: dcarver)
References
Details
Bug 2086657 added a logModule option to console.createInstance that names the MOZ_LOG module of a console, so that prefix can be just a label. Firefox's consoles have moved to it, but the Thunderbird callsites still name their MOZ_LOG module with prefix, which is now deprecated.
Move each Thunderbird callsite from prefix: to logModule:, keeping the same value, so that the module names, MOZ_LOG and the logging.* prefs keep working. Where the value of prefix is a label built at run time rather than a module name, give the console a fixed logModule instead, so that one module is enabled as a whole.
The sed command in comment 2 of bug 2086657 shows how the Firefox tree was converted and can be adapted to comm-central. The console.createInstance examples in toolkit/docs/javascript-logging.md and xpcom/docs/logging.md show the new form.
Description
•