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 = Trac supports logging of system messages using the standard ''logging'' module part of Python 2.3 and newer. '''Warning:''' If you are using a version of Python older than 2.3, log messages will be silently thrown away! If you are using Python 2.2, however, note that the logging package works perfectly under 2.2; you can just copy the entire {{{logging}}} directory from the Python 2.3 lib directory into the Python 2.2 lib directory. == Supported Methods == * '''none''' -- Suppress all log messages. * '''file''' -- Log messages to a file, specified with the ''log_file'' directive in [wiki:TracIni 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'. * '''winlog''' -- (Windows) Use the system's NT eventlog for Trac logging. == Log Levels == The level of verbosity of logged messages can be set using the ''log_level'' directive in [wiki:TracIni trac.ini]. The log level defines the minimum level of urgency required for a message to be logged. The levels are: * ''CRITICAL'' -- Log only the most critical, typically fatal, messages. * ''ERROR'' -- Request failures, bugs and errors. * ''WARN'' -- Warnings, non-interrupting events. * ''INFO'' -- Diagnostic information, log information about all requests. * ''DEBUG'' -- Development messages, profiling, etc. Not for public consumption. ---- See also: TracIni, TracGuide
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.