MailNews:Logging: Difference between revisions

Jump to navigation Jump to search
m
correct Thunderbird_Logging lower case nit
(improve gecko logging instructions)
m (correct Thunderbird_Logging lower case nit)
Line 12: Line 12:


Also, we have two types of logging:
Also, we have two types of logging:
* [[MailNews:Logging#Thunderbird_logging|Thunderbird logging]], for calendar, chat, gloda indexing and seach, ldap, nntp (news), pop, and smtp (sending mail)
* [[MailNews:Logging#Thunderbird_Logging|Thunderbird logging]], for calendar, chat, gloda indexing and seach, ldap, nntp (news), pop, and smtp (sending mail)
* [[MailNews:Logging#gecko_logging|Gecko logging]], which uses [[MailNews:Logging#Thunderibrd_Module_names|module names]], such as imap and imap autosync
* [[MailNews:Logging#gecko_logging|Gecko logging]], which uses [[MailNews:Logging#Thunderibrd_Module_names|module names]], such as imap and imap autosync


Line 78: Line 78:
# IMAPOffline <small>(before Thunderbird version 59: IMAPOFFLINE)</small>
# IMAPOffline <small>(before Thunderbird version 59: IMAPOFFLINE)</small>
# Import <small>(before Thunderbird version 59: IMPORT)</small>
# Import <small>(before Thunderbird version 59: IMPORT)</small>
# ldap <small>(After Thunderbird 90 use [[MailNews:Logging#Thunderbird_logging|Thunderbird logging]])</small>   
# ldap <small>(After Thunderbird 90 use [[MailNews:Logging#Thunderbird_Logging|Thunderbird logging]])</small>   
# Mailbox (before Thunderbird version 59: MAILBOX)
# Mailbox (before Thunderbird version 59: MAILBOX)
# MailDirStore
# MailDirStore
Line 89: Line 89:
# MsgDB <small>(level 1=opens/closes, level 5 lists open db's on close, number of msg hdrs in use)</small> (before Thunderbird version 59: MSGDB)
# MsgDB <small>(level 1=opens/closes, level 5 lists open db's on close, number of msg hdrs in use)</small> (before Thunderbird version 59: MSGDB)
# MsgPurge
# MsgPurge
# NNTP <small>(After Thunderbird 95 use [[MailNews:Logging#Thunderbird_logging|Thunderbird logging]])</small>
# NNTP <small>(After Thunderbird 95 use [[MailNews:Logging#Thunderbird_Logging|Thunderbird logging]])</small>
# pop3 <small>(After Thunderbird 98 use [[MailNews:Logging#Thunderbird_logging|Thunderbird logging]])</small>  
# pop3 <small>(After Thunderbird 98 use [[MailNews:Logging#Thunderbird_Logging|Thunderbird logging]])</small>  
# smtp <small>(After Thunderbird 90 use "[[MailNews:Logging#Thunderbird_logging|Thunderbird logging]])</small>
# smtp <small>(After Thunderbird 90 use "[[MailNews:Logging#Thunderbird_Logging|Thunderbird logging]])</small>


Notes:
Notes:
Line 108: Line 108:
=== Environment Variables to set ===
=== Environment Variables to set ===


'''NOTE - do not use this section for ldap, nntp, pop3 and smtp. They are configured per [[MailNews:Logging#Thunderbird_logging|Thunderbird logging]].
'''NOTE - do not use this section for ldap, nntp, pop3 and smtp. They are configured per [[MailNews:Logging#Thunderbird_Logging|Thunderbird logging]].


Two variables must be set, '''MOZ_LOG''' and '''MOZ_LOG_FILE''' as local environment variables in a batch file/script (described [[MailNews:Logging#Generating_a_Gecko_Log|below]]) or on a command line. (using global system environment variables is not recommended)  
Two variables must be set, '''MOZ_LOG''' and '''MOZ_LOG_FILE''' as local environment variables in a batch file/script (described [[MailNews:Logging#Generating_a_Gecko_Log|below]]) or on a command line. (using global system environment variables is not recommended)  
Line 133: Line 133:
===== Logging level =====
===== Logging level =====


'''NOTE - do not use this section for ldap, nntp, pop3 and smtp. They are configured per [[MailNews:Logging#Thunderbird_logging|Thunderbird logging]].
'''NOTE - do not use this section for ldap, nntp, pop3 and smtp. They are configured per [[MailNews:Logging#Thunderbird_Logging|Thunderbird logging]].


The number in MOZ_LOG specifies the level of logging to be used. A lower number reduces the amount of information being logged. Use "5" unless requested otherwise.
The number in MOZ_LOG specifies the level of logging to be used. A lower number reduces the amount of information being logged. Use "5" unless requested otherwise.
Line 209: Line 209:


If your log file is empty or missing, review this document again, and check for these common problems:
If your log file is empty or missing, review this document again, and check for these common problems:
* Are you logging ldap, nntp, pop3, or smtp? You must use [[MailNews:Logging#Thunderbird_logging|Thunderbird logging]], not Gecko module logging using environment variables.
* Are you logging ldap, nntp, pop3, or smtp? You must use [[MailNews:Logging#Thunderbird_Logging|Thunderbird logging]], not Gecko module logging using environment variables.
* Do you have write access to the directory specified in MOZ_LOG_FILE?
* Do you have write access to the directory specified in MOZ_LOG_FILE?
* Did you shut down the application?  (the log file is buffered in memory until the application is closed)
* Did you shut down the application?  (the log file is buffered in memory until the application is closed)
canmove, Confirmed users
2,230

edits

Navigation menu