Changes between Version 6 and Version 7 of TracLogging
- Timestamp:
- Nov 15, 2004, 4:59:04 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracLogging
v6 v7 3 3 4 4 Trac 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!6 5 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. 8 7 9 == Supported Methods == 8 Logging is configured in the {{{[logging]}}} section in [wiki:TracIni trac.ini]. 9 10 == Python 2.2 Workaround == 11 If 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 == 10 15 * '''none''' -- Suppress all log messages. 11 16 * '''file''' -- Log messages to a file, specified with the ''log_file'' directive in [wiki:TracIni trac.ini]. … … 22 27 * ''WARN'' -- Warnings, non-interrupting events. 23 28 * ''INFO'' -- Diagnostic information, log information about all requests. 24 * ''DEBUG'' -- Development messages, profiling, etc. Not f or publicconsumption.29 * ''DEBUG'' -- Development messages, profiling, etc. Not fit for human consumption. 25 30 26 31 ---- 27 See also: TracIni, TracGuide 32 See also: TracIni, TracGuide, TracEnvironment