canmove, Confirmed users
2,181
edits
(→Main module options within MailNews: add --) |
m (revise for smtp and pop3) |
||
Line 23: | Line 23: | ||
# MsgPurge | # MsgPurge | ||
# NNTP | # NNTP | ||
# POP3 --- NOTE! for Thunderbird 99+ POP3 logging is changed and does not use this way of logging. | # POP3 --- NOTE! for Thunderbird 99+ POP3 logging is changed and does not use this way of logging. Staring with 99, set the mailnews.pop3.loglevel pref to "All" and open the Error Console (Ctrl+Shift+J). | ||
# SMTP --- NOTE! for Thunderbird 91+ SMTP logging is changed and does not use this way of logging. | # SMTP --- NOTE! for Thunderbird 91+ SMTP logging is changed and does not use this way of logging. Starting with 91, set the mailnews.smtp.loglevel pref to "All" and open the Error Console (Ctrl+Shift+J). | ||
([[MailNews:Logging#Other_Protocol_Logging_options_within_MailNews|Other options below]]) | ([[MailNews:Logging#Other_Protocol_Logging_options_within_MailNews|Other options below]]) | ||
Line 33: | Line 33: | ||
# '''MOZ_LOG''' - '''CASE SENSITIVE''' module name and [[MailNews:Logging#Logging_level|log level]] separated by colon, multiple modules separated by comma, and additional options: | # '''MOZ_LOG''' - '''CASE SENSITIVE''' module name and [[MailNews:Logging#Logging_level|log level]] separated by colon, multiple modules separated by comma, and additional options: | ||
#* Example module and loglevel: '''IMAP:5,timestamp''' | #* Example module and loglevel: '''IMAP:5,timestamp''' | ||
#* ''',timestamp''' adds a timestamp to all log lines - generally recommended. required for all timeouts and issues which need to be correlated to an action at a given time of day <small>(as of 2009-05-13 3.0b3pre builds)</small> | #* ''',timestamp''' adds a timestamp to all log lines - generally recommended. required for all timeouts and issues which need to be correlated to an action at a given time of day <small>(as of 2009-05-13 3.0b3pre builds)</small> | ||
Line 69: | Line 68: | ||
"%ProgramFiles(x86)%\Mozilla Thunderbird\thunderbird.exe" | "%ProgramFiles(x86)%\Mozilla Thunderbird\thunderbird.exe" | ||
* To log | * To log a different module, replace "IMAP" with e.g. "MIME" In the above instructions | ||
* XP and Vista users should specify %ProgramFiles% instead of %ProgramFiles(x86)% (which is for Windows 7) - assuming Thunderbird was installed to it's default location. | * XP and Vista users should specify %ProgramFiles% instead of %ProgramFiles(x86)% (which is for Windows 7) - assuming Thunderbird was installed to it's default location. | ||
* On versions with User Account Control such as Vista and Windows 7, the batch file must be run with administrator privileges. Right click on the batch file and select "Run as administrator". Otherwise the log file will not be created and no UAC warnings will be generated. | * On versions with User Account Control such as Vista and Windows 7, the batch file must be run with administrator privileges. Right click on the batch file and select "Run as administrator". Otherwise the log file will not be created and no UAC warnings will be generated. | ||
Line 92: | Line 91: | ||
Save this file with a filename ending in .command, add execute permission by typing "<tt>chmod a+x ''filename''</tt>" in a Terminal window, then double-click it. | Save this file with a filename ending in .command, add execute permission by typing "<tt>chmod a+x ''filename''</tt>" in a Terminal window, then double-click it. | ||
To get a log for another protocol, replace "imap" with e.g. " | To get a log for another protocol, replace "imap" with e.g. "MIME" in the above instructions. | ||
Alternatively, you can setup a file so that the protocol tracing will always be in effect. To do this open a Terminal window, cd into the .MacOSX directory under your login directory and create a file named <tt>environment.plist</tt> containing the following. Non-unix users can use the "pico" editor which I think is available on OS X by default:<br> | Alternatively, you can setup a file so that the protocol tracing will always be in effect. To do this open a Terminal window, cd into the .MacOSX directory under your login directory and create a file named <tt>environment.plist</tt> containing the following. Non-unix users can use the "pico" editor which I think is available on OS X by default:<br> | ||
Line 120: | Line 119: | ||
setenv MOZ_LOG_FILE /tmp/imap.log | setenv MOZ_LOG_FILE /tmp/imap.log | ||
To get a log for another protocol, replace "IMAP" with e.g. " | To get a log for another protocol, replace "IMAP" with e.g. "MIME" in the above instructions. | ||
=== Missing Log File === | === Missing Log File === |