MailNews:Logging: Difference between revisions

m
add timestamp to example scripts
(→‎Environment Variables to set: recommend using timestamp)
m (add timestamp to example scripts)
Line 55: Line 55:
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".  
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,timestamp
  set NSPR_LOG_FILE=%USERPROFILE%\Desktop\imap.log
  set NSPR_LOG_FILE=%USERPROFILE%\Desktop\imap.log
  "%ProgramFiles(x86)%\Mozilla Thunderbird\thunderbird.exe"
  "%ProgramFiles(x86)%\Mozilla Thunderbird\thunderbird.exe"
Line 74: Line 74:


  #!/bin/sh
  #!/bin/sh
  export NSPR_LOG_MODULES=imap:5
  export NSPR_LOG_MODULES=imap:5,timestamp
  export NSPR_LOG_FILE=$HOME/imap.log
  export NSPR_LOG_FILE=$HOME/imap.log
  /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin &
  /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin &
Line 102: Line 102:


  # For bash shell (the default shell on most GNU/Linux systems):
  # For bash shell (the default shell on most GNU/Linux systems):
  export NSPR_LOG_MODULES=imap:5
  export NSPR_LOG_MODULES=imap:5,timestamp
  export NSPR_LOG_FILE=/tmp/imap.log
  export NSPR_LOG_FILE=/tmp/imap.log


canmove, Confirmed users
2,081

edits