Edgewall Software

Changes between Version 16 and Version 17 of TracLogging


Ignore:
Timestamp:
Jul 27, 2012, 11:10:34 AM (12 years ago)
Author:
Alex Willmer <al.willmer@…>
Comment:

Link directly to logging module LogRecord attributes

Legend:

Unmodified
Added
Removed
Modified
  • TracLogging

    v16 v17  
    3131== Log Format ==
    3232
    33 Starting with Trac 0.10.4 (see [trac:#2844 #2844]), it is possible to set the output format for log entries. This can be done through the `log_format` option in [wiki:TracIni#logging-section trac.ini]. The format is a string which can contain any of the [http://docs.python.org/lib/node422.html Python logging Formatter variables]. Additonally, the following Trac-specific variables can be used:
     33Starting with Trac 0.10.4 (see [trac:#2844 #2844]), it is possible to set the output format for log entries. This can be done through the `log_format` option in [wiki:TracIni#logging-section trac.ini]. The format is a string which can contain any of the [http://docs.python.org/library/logging.html#logrecord-attributes Python logging Formatter variables]. Additonally, the following Trac-specific variables can be used:
    3434 '''$(basename)s''':: The last path component of the current environment.
    3535 '''$(path)s''':: The absolute path for the current environment.