MailNews:Logging: Difference between revisions

m
clarify terminology and log level
m (→‎Enhancement Ideas: logging UI)
m (clarify terminology and log level)
Line 22: Line 22:
== Environment Variables to set ==
== Environment Variables to set ==


Two environment variables must set:
Two variables must set. These can be as (global/system) environment variables. Or, what we document here, as variables in a batch file/script or on the command line:  


# NSPR_LOG_MODULES - Module name and level separated by colon, and multiple modules separated by comma
# '''NSPR_LOG_MODULES''' - Module name and log level separated by colon, and multiple modules separated by comma
#* Example: "imap:5"
#* Example: "imap:5"
#* Example: "ldap:5,smtp:3,timestamp"
#* Example: "ldap:5,smtp:3,timestamp"
#* optional ",timestamp" : timestamp is added to all log entries <small>(as of 2009-05-13 3.0b3pre builds)</small>
#* optional ",timestamp" : timestamp is added to all log entries <small>(as of 2009-05-13 3.0b3pre builds)</small>
#* optional ",sync" : Buffering in log writing is disabled, so latest log data can be seen by ad-hoc copy of log file
#* optional ",sync" : Buffering in log writing is disabled, so latest log data can be seen by ad-hoc copy of log file
# NSPR_LOG_FILE - Path to the log file
# '''NSPR_LOG_FILE''' - Path to the log file
#* 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.


Line 45: Line 45:
* PR_LOG_WARNING = 3, /* warning messages */
* PR_LOG_WARNING = 3, /* warning messages */
* PR_LOG_DEBUG = 4, /* debug messages */
* PR_LOG_DEBUG = 4, /* debug messages */
* 5 (recommended)


<small>Some modules may not work exactly according to the log levels noted above. Very few modules actually have different logging levels</small>
<small>Some modules may not work exactly according to the log levels noted above. Very few modules actually have more than one logging level</small>


== Generating a Protocol Log ==
== Generating a Protocol Log ==
canmove, Confirmed users
2,188

edits