Changes between Version 16 and Version 17 of TracLogging
- Timestamp:
- Jul 27, 2012, 11:10:34 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracLogging
v16 v17 31 31 == Log Format == 32 32 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.htmlPython logging Formatter variables]. Additonally, the following Trac-specific variables can be used: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/library/logging.html#logrecord-attributes Python logging Formatter variables]. Additonally, the following Trac-specific variables can be used: 34 34 '''$(basename)s''':: The last path component of the current environment. 35 35 '''$(path)s''':: The absolute path for the current environment.