DebugLogger is a developer's tool that enhances the debug console by providing a more organized and efficient way of debugging, without needing to rely on using dump.
To make use of this extension, simply put debug statements within your extension using the API provided by DebugLogger. First, access the logMngr API with the following code:
1: logMngr = Components.classes["@mozmonkey.com/debuglogger/manager;1"].getService(Components.interfaces.nsIDebugLoggerManager);
Next, register your logger with DebugLogger using the following code:
2: logger = logMngr.registerLogger("myapp");
Finally, log your messages using the logger API:
3: logger.log(3, "Hello World");
DebugLogger is compatible with Thunderbird 0.9 to 1.5.0.* and works on all platforms.
To avoid errors when someone runs your extension without the debug logger installed, a custom wrapper function should be constructed to invoke the logger. This way, it can be turned on or off from a single source during development and production.
DebugLogger proves to be useful when troubleshooting user-reported problems. Asking users to install the tool can help provide important debugging data to save you time. With DebugLogger, developers can maintain a clean and organized console for better debugging experiences.
Version 0.2.2: N/A