Edgewall Software
Home
Trac
Trac Hacks
Genshi
Babel
Bitten
Home
Download
Documentation
Mailing Lists
License
FAQ
Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Timeline
Roadmap
Browse Source
View Tickets
New Ticket
Search
Context Navigation
-1
Start Page
Index
History
Editing TracLogging
Adjust edit area height:
8
12
16
20
24
28
32
36
40
Edit side-by-side
= Trac Logging = [[TracGuideToc]] Trac supports logging of system messages using the standard [http://docs.python.org/lib/module-logging.html logging module] that comes with Python. Logging is configured in the `[logging]` section in [wiki:TracIni#logging-section trac.ini]. == Supported Logging Methods == The log method is set using the `log_type` option in [wiki:TracIni#logging-section trac.ini], which takes any of the following values: '''none'':: Suppress all log messages. '''file''':: Log messages to a file, specified with the `log_file` option in [wiki:TracIni#logging-section trac.ini]. '''stderr''':: Output all log entries to console ([wiki:TracStandalone tracd] only). '''syslog''':: (UNIX) Send messages to local syslogd via named pipe `/dev/log`. '''eventlog''':: (Windows) Use the system's NT eventlog for Trac logging. == Log Levels == The verbosity level of logged messages can be set using the `log_level` option in [wiki:TracIni#logging-section trac.ini]. The log level defines the minimum level of urgency required for a message to be logged, and those levels are: '''CRITICAL''':: Log only the most critical (typically fatal) errors. '''ERROR''':: Log failures, bugs and errors. '''WARN''':: Log warnings, non-interrupting events. '''INFO''':: Diagnostic information, log information about all processing. '''DEBUG''':: Trace messages, profiling, etc. ---- See also: TracIni, TracGuide, TracEnvironment
Note:
See
WikiFormatting
and
TracWiki
for help on editing wiki content.
Change information
Your email or username:
E-mail address and name can be saved in the
Preferences
Comment about this change (optional):
Note:
See
TracWiki
for help on using the wiki.