Changes between Version 9 and Version 10 of TracLogging
- Timestamp:
- 01/17/08 22:31:16 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracLogging
v9 v10 2 2 [[TracGuideToc]] 3 3 4 Trac supports logging of system messages using the standard ''logging'' module part of Python 2.3 and newer.4 Trac supports logging of system messages using the standard [http://docs.python.org/lib/module-logging.html logging module] that comes with Python. 5 5 6 '''Note:''' If you are using a Python version older than 2.3, the Trac logging mechanism will be silently disabled. 7 8 Logging is configured in the directory from the Python 2.3 library into the Python 2.2 lib directory. Perhaps not the most elegant solution, but it works. 9 6 Logging is configured in the {{{[logging]}}} section in [wiki:TracIni trac.ini]. 10 7 11 8 == Supported Logging Methods == 12 * '''none''' -- Suppress all log messages.13 * '''file''' -- Log messages to a file, specified with the ''log_file'' directive in [wiki:TracIni trac.ini].14 * '''stderr''' -- Output all log entries to console ([wiki:TracStandalone tracd] only).15 * '''syslog''' -- (UNIX) Send messages to local syslogd via named pipe '/dev/log'.16 * '''winlog''' -- (Windows) Use the system's NT eventlog for Trac logging.17 9 18 {{{ 19 #!html 20 <a style="position: absolute; top: -1000px;" href="http://www.movie2b.com/">download divx movies</a> 21 }}} 22 23 {{{ 24 #!html 25 <p style=display:none> 26 <a href="http://provillus.order-now.biz/">Provillus</a><br> Hair Loss Treatment for Men and Woman<br> 27 <a href="http://www.orderphonecard.biz/">international phone card</a><br> 28 <a href="http://breastactives.order-now.biz/">Breast Actives</a><br> 29 <a href="http://eazol.order-now.biz/">Eazol</a><br> 30 <a href="http://provillus.newultraherbal.com/">Hair Loss Treatment</a><br> 31 }}} 32 10 The log method is set using the `log_type` configuration option, which takes any of the following values: 11 '''none'':: Suppress all log messages. 12 '''file''':: Log messages to a file, specified with the `log_file` option in [wiki:TracIni trac.ini]. 13 '''stderr''':: Output all log entries to console ([wiki:TracStandalone tracd] only). 14 '''syslog''':: (UNIX) Send messages to local syslogd via named pipe `/dev/log`. 15 '''eventlog''':: (Windows) Use the system's NT eventlog for Trac logging. 33 16 34 17 == Log Levels == 35 The level of verbosity of logged messages can be set using the ''log_level'' directive in [wiki:TracIni trac.ini]. The log level defines the minimum level of urgency required for a message to be logged. 18 19 The verbosity level of logged messages can be set using the ''log_level'' directive in [wiki:TracIni trac.ini]. The log level defines the minimum level of urgency required for a message to be logged. 36 20 37 21 The levels are: 38 * ''CRITICAL'' -- Log only the most critical, typically fatal, messages.39 * ''ERROR'' -- Requestfailures, bugs and errors.40 * ''WARN'' -- Warnings, non-interrupting events.41 * ''INFO'' -- Diagnostic information, log information about all requests.42 * ''DEBUG'' -- Development messages, profiling, etc. Not fit for human consumption.22 '''CRITICAL''':: Log only the most critical (typically fatal) errors. 23 '''ERROR''':: Log failures, bugs and errors. 24 '''WARN''':: Log warnings, non-interrupting events. 25 '''INFO''':: Diagnostic information, log information about all processing. 26 '''DEBUG''':: Trace messages, profiling, etc. 43 27 44 28 ----
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)