canmove, Confirmed users
2,188
edits
(Fix case of log modules) |
m (some changes, but not finished) |
||
Line 7: | Line 7: | ||
== Logging prior to Thunderbird 55.0a1 / SeaMonkey 2.52a1 == | == Logging prior to Thunderbird 55.0a1 / SeaMonkey 2.52a1 == | ||
Around April 5, 2017, via {{bug|1222244}} and blockers of {{bug|1219461}}, changes were merged to the Mozilla trunk which impacted logging functionality. Prior to these changes, the variable names used to configure logging were '''NSPR_LOG_MODULES''' and '''NSPR_LOG_FILE''' rather than '''MOZ_LOG''' and '''MOZ_LOG_FILE'''. If you are working with an older version, use the old variable names. | |||
In addition, some log module names changed. The old names are documented below, but will eventually be removed (along with this section) when enough time has past that it is no longer necessary for most people to debug older versions of the applications. Of course, the obsolete documentation will remain accessible in the history of this page. | In addition, some log module names changed. The old names are documented below, but will eventually be removed (along with this section) when enough time has past that it is no longer necessary for most people to debug older versions of the applications. Of course, the obsolete documentation will remain accessible in the history of this page. | ||
Line 89: | Line 89: | ||
#!/bin/sh | #!/bin/sh | ||
export MOZ_LOG= | export MOZ_LOG=imap:5,timestamp | ||
export MOZ_LOG_FILE=$HOME/imap.log | export MOZ_LOG_FILE=$HOME/imap.log | ||
/Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin & | /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin & | ||
Line 96: | Line 96: | ||
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 " | To get a log for another protocol, replace "imap" with e.g. "smtp" or "pop3" 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 117: | Line 117: | ||
# For bash shell (the default shell on most GNU/Linux systems): | # For bash shell (the default shell on most GNU/Linux systems): | ||
export MOZ_LOG= | export MOZ_LOG=imap:5,timestamp | ||
export MOZ_LOG_FILE=/tmp/imap.log | export MOZ_LOG_FILE=/tmp/imap.log | ||
# For tcsh / csh (which is not as common): | # For tcsh / csh (which is not as common): | ||
setenv MOZ_LOG | setenv MOZ_LOG imap:5 | ||
setenv MOZ_LOG_FILE /tmp/imap.log | setenv MOZ_LOG_FILE /tmp/imap.log | ||
To get a log for another protocol, replace " | To get a log for another protocol, replace "imap" with e.g. "smtp" or "pop3" in the above instructions. | ||
=== Missing Log File === | === Missing Log File === |