MailNews:Logging: Difference between revisions

Jump to navigation Jump to search
m
→‎Windows: verbiage
m (move calendar)
m (→‎Windows: verbiage)
Line 52: Line 52:
=== Windows ===
=== Windows ===


Create a batch file e.g. "create_imap_log.bat" using notepad. Example which puts the log file on your desktop:
Create a batch file by copying the lines below and paste them into the notepad application, and save the file as "create_imap_log.bat".  


  set NSPR_LOG_MODULES=imap:5
  set NSPR_LOG_MODULES=imap:5
Line 58: Line 58:
  "%ProgramFiles(x86)%\Mozilla Thunderbird\thunderbird.exe"
  "%ProgramFiles(x86)%\Mozilla Thunderbird\thunderbird.exe"


: To log another protocol, replace "imap" with e.g. "smtp" or "pop3" in the above instructions
* To log another protocol, replace "imap" with e.g. "smtp" or "pop3" in the above instructions
: (assuming you installed to default locations) %ProgramFiles(x86)% is for Windows 7. For Vista and XP use %ProgramFiles%
* 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.


To get logging information just run the batch file, which you can configure to any of these methods: double click the batch file, create a shortcut, add it to start menu, from a command prompt, or from the start>run dialog.</small>
Now run the batch file. The example puts the log file on your desktop:


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.
You can set up the batch file to be run using of these methods: double click the batch file, create a shortcut, add it to start menu, from a command window prompt, or from the start>run dialog.


Logging commands can also typed directly in the command prompt instead of running a batch file. 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.
Logging commands can also typed directly in the command prompt instead of running a batch file. 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.
canmove, Confirmed users
2,199

edits

Navigation menu