Edgewall Software

Changes between Version 6 and Version 7 of TracLogging


Ignore:
Timestamp:
Nov 15, 2004, 4:59:04 AM (19 years ago)
Author:
daniel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracLogging

    v6 v7  
    33
    44Trac supports logging of system messages using the standard ''logging'' module part of Python 2.3 and newer.
    5 '''Warning:''' If you are using a version of Python older than 2.3, log messages will be silently thrown away!
    65
    7 If you are using Python 2.2, however, note that the logging package works perfectly under 2.2; you can just copy the entire {{{logging}}} directory from the Python 2.3 lib directory into the Python 2.2 lib directory.
     6'''Note:''' If you are using a Python version older than 2.3, the Trac logging mechanism will be silently disabled.
    87
    9 == Supported Methods ==
     8Logging is configured in the {{{[logging]}}} section in [wiki:TracIni trac.ini].
     9
     10== Python 2.2 Workaround ==
     11If you are using Python 2.2, however, note that the logging package from Python 2.3 works perfectly under 2.2 as well; you can just copy the entire {{{logging}}} directory from the Python 2.3 library into the Python 2.2 lib directory. Perhaps not the most elegant solution, but it works.
     12
     13
     14== Supported Logging Methods ==
    1015 * '''none''' -- Suppress all log messages.
    1116 * '''file''' -- Log messages to a file, specified with the ''log_file'' directive in [wiki:TracIni trac.ini].
     
    2227 * ''WARN'' -- Warnings, non-interrupting events.
    2328 * ''INFO'' -- Diagnostic information, log information about all requests.
    24  * ''DEBUG'' -- Development messages, profiling, etc. Not for public consumption.
     29 * ''DEBUG'' -- Development messages, profiling, etc. Not fit for human consumption.
    2530
    2631----
    27 See also: TracIni, TracGuide
     32See also: TracIni, TracGuide, TracEnvironment