Trac LoggingTrac supports logging of system messages using the standard logging module part of Python 2.3 and newer. Note: If you are using a Python version older than 2.3, the Trac logging mechanism will be silently disabled. Logging is configured in the [logging] section in trac.ini. Python 2.2 WorkaroundIf 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. Supported Logging Methods
Log LevelsThe level of verbosity of logged messages can be set using the log_level directive in trac.ini. The log level defines the minimum level of urgency required for a message to be logged. The levels are:
See also: TracIni, TracGuide, TracEnvironment |