canmove, Confirmed users
2,201
edits
(add Missing Log File) |
|||
| Line 3: | Line 3: | ||
__TOC__ | __TOC__ | ||
MailNews logging is activated by setting two environment variables before running a MailNews application. | |||
== Main Logging options within MailNews == | == Main Logging options within MailNews == | ||
| Line 23: | Line 23: | ||
== Environment Variables to set == | == Environment Variables to set == | ||
Two environment variables | Two environment variables must set: | ||
# NSPR_LOG_MODULES - Module name and level separated by colon | # NSPR_LOG_MODULES - Module name and level separated by colon | ||
| Line 32: | Line 32: | ||
#* If NSPR_LOG_FILE is not set, then the output will be logged to the console where the application was launched. | #* If NSPR_LOG_FILE is not set, then the output will be logged to the console where the application was launched. | ||
Note: | |||
* The log is written over every time you re-launch the mozilla application. | |||
* You must have write access to the directory of the log file. | |||
=== Logging level === | === Logging level === | ||
| Line 64: | Line 66: | ||
The above commands can also be executed directly in the command prompt. On Windows 2000, XP, 2003 Server: Start>Programs>Accessories>Command Prompt. On later windows versions, you may type "cmd" and press enter in the launch dialog of the Start button. | The above commands can also be executed directly in the command prompt. On Windows 2000, XP, 2003 Server: Start>Programs>Accessories>Command Prompt. On later windows versions, you may type "cmd" and press enter in the launch dialog of the Start button. | ||
=== Mac OS X | === Mac OS X === | ||
To generate an IMAP protocol log, create a text file that contains the desired commands in a text editor such as BBEdit: | To generate an IMAP protocol log, create a text file that contains the desired commands in a text editor such as BBEdit: | ||
| Line 105: | Line 107: | ||
To get a log for another protocol, replace "imap" with e.g. "smtp" or "pop3" in the above instructions. | To get a log for another protocol, replace "imap" with e.g. "smtp" or "pop3" in the above instructions. | ||
=== Missing Log File === | |||
If your log file is empty or missing, review this document again, and check for these common problems: | |||
* Do you have write access to the directory specified? | |||
* Did you shut down the mailnews application? (the log file is buffered in memory) | |||
* Did you restart your mailnews application, and wipe out the log of the session you wanted to debug? (every restart wipes out the previous log) | |||
* If you used a batch file on windows, is the batch file set to run with administrator privileges? | |||
== Reference Documents == | == Reference Documents == | ||
| Line 130: | Line 140: | ||
* negotiateauth | * negotiateauth | ||
* gssapi | * gssapi | ||
Calendar logging is documented [[Calendar:QA_CalDAV_Support#Diagnosis_hints|here]] | Calendar logging is documented [[Calendar:QA_CalDAV_Support#Diagnosis_hints|here]] | ||