Thunderbird:Backend Hacking Guide For Newbies: Difference between revisions

→‎Logging/Tracing Thunderbird: Move the logging information out to the new logging page.
(→‎Logging/Tracing Thunderbird: Change logging link to a new page.)
(→‎Logging/Tracing Thunderbird: Move the logging information out to the new logging page.)
Line 155: Line 155:
==== Logging/Tracing Thunderbird ====
==== Logging/Tracing Thunderbird ====


Thunderbird logging mechanism is activated by setting couple environment variables before running Thunderbird. Two environment variables that should set are;
See [[MailNews:Logging]] for how to do general NSPR logging in MailNews. Note that there are many more logging options/protocols in the core code, search for [http://mxr.mozilla.org/seamonkey/search?string=PR_NewLogModule PR_NewLogModule] to find them.
 
1) '''NSPR_LOG_MODULES''': Module name and level separated by colon
2) '''NSPR_LOG_FILE''': Path to the log file
 
* Module activity logging
General rule is to set NSPR_LOG_MODULES to the literal defined in the implementation file of the module in question. For example to log timer events, the value should be set to "nsTimerImpl:5" as defined in [http://mxr.mozilla.org/seamonkey/source/xpcom/threads/nsTimerImpl.h#55 the header file of the timer module].
 
* MailNews and Protocol logging
Detailed information about MailNews and protocol logging can be found at [[MailNews:Logging]].
 
(old link [http://www.mozilla.org/quality/mailnews/mail-troubleshoot.html Mail Logging/Troubleshotting])


* Misc
* Misc
canmove, Confirmed users, Bureaucrats and Sysops emeriti
3,627

edits