Changes between Version 2 and Version 3 of TracLogging


Ignore:
Timestamp:
11/18/04 18:02:59 (16 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracLogging

    v2 v3  
    11= Trac Logging =
     2[[TracGuideToc]]
     3
    24Trac supports logging of system messages using the standard ''logging'' module part of Python 2.3 and newer.
    35
    4 == Supported Methods ==
     6'''Note:''' If you are using a Python version older than 2.3, the Trac logging mechanism will be silently disabled.
     7
     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 ==
    515 * '''none''' -- Suppress all log messages.
    6  * '''file''' -- Log messages to a file, specified in the [wiki:TracConfiguration configuration] (Using the ''log_file'' directive in [wiki:TracIni trac.ini]).
    7  * '''stderr''' -- Output all log entries to console. (tracd only)
     16 * '''file''' -- Log messages to a file, specified with the ''log_file'' directive in [wiki:TracIni trac.ini].
     17 * '''stderr''' -- Output all log entries to console ([wiki:TracStandalone tracd] only).
    818 * '''syslog''' -- (UNIX) Send messages to local syslogd via named pipe '/dev/log'.
    919 * '''winlog''' -- (Windows) Use the system's NT eventlog for Trac logging.
     
    1727 * ''WARN'' -- Warnings, non-interrupting events.
    1828 * ''INFO'' -- Diagnostic information, log information about all requests.
    19  * ''DEBUG'' -- Development messages, profiling, etc. Not for public consumption.
     29 * ''DEBUG'' -- Development messages, profiling, etc. Not fit for human consumption.
    2030
    2131----
    22 See also: TracIni, TracGuide
     32See also: TracIni, TracGuide, TracEnvironment