If you use bootstrap, this should do what you are looking for:
prefs = require("sdk/preferences/service"); prefs.set("extensions." + extensionName + ".sdk.console.logLevel", "all");
This may not be the most elegant solution, but you can comment on the code before posting.
If anyone finds a better way, please let me know!
source share