|Version 8 (modified by 17 years ago) ( diff ),|
This page documents the 1.4 (latest stable) release. Documentation for other releases can be found here.
Table of Contents
Trac supports logging of system messages using the standard logging module that comes with Python.
Logging is configured in the
[logging] section in trac.ini.
Supported Logging Methods
The log method is set using the
log_type configuration option, which takes any of the following values:
- Suppress all log messages.
- Log messages to a file, specified with the
log_fileoption in trac.ini.
- Output all log entries to console (tracd only).
- (UNIX) Send messages to local syslogd via named pipe
- (Windows) Use the system's NT eventlog for Trac logging.
The verbosity level 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:
- Log only the most critical (typically fatal) errors.
- Log failures, bugs and errors.
- Log warnings, non-interrupting events.
- Diagnostic information, log information about all processing.
- Trace messages, profiling, etc.