Changes between Version 2 and Version 3 of TracLogging


Ignore:
Timestamp:
Dec 31, 2005, 4:43:10 PM (18 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracLogging

    v2 v3  
    1 = ログ =
     1= Trac Logging =
    22[[TracGuideToc]]
    33
    4 TracはPythonのバージョン2.3の一部とそれより新しいバージョンで標準 ''ログ'' モジュールを使用したシステムメッセージのロギングをサポートしています。
     4Trac supports logging of system messages using the standard [http://docs.python.org/lib/module-logging.html logging module] that comes with Python.
    55
    6 '''Note:''' もし、Python 2.3よりも古いバージョンを使用しているならば、Tracのログのメカニズムはただ単に無効になります。
     6Logging is configured in the {{{[logging]}}} section in [wiki:TracIni trac.ini].
    77
    8 ログは[wiki:TracIni trac.ini]の{{{[logging]}}}セクションで設定することができます。
     8== Supported Logging Methods ==
    99
    10 == Python 2.2 における回避方法 ==
    11 もし、Python 2.2を使用しているならば、Python 2.3のログパッケージはPython 2.2と完全に互換性があることを覚えておいてください; Python 2.3のライブラリのディレクトリから{{{logging}}} をただ丸ごとコピーして、Python 2.2の {{{lib}}}ディレクトリに置いてください。最も良い解決方法だとはいえませんが、ログモジュールは動作します。
     10The log method is set using the `log_type` configuration option, which takes any of the following values:
     11 '''none'':: Suppress all log messages.
     12 '''file''':: Log messages to a file, specified with the `log_file` option in [wiki:TracIni trac.ini].
     13 '''stderr''':: Output all log entries to console ([wiki:TracStandalone tracd] only).
     14 '''syslog''':: (UNIX) Send messages to local syslogd via named pipe `/dev/log`.
     15 '''eventlog''':: (Windows) Use the system's NT eventlog for Trac logging.
    1216
     17== Log Levels ==
    1318
    14 == サポートするログの種類 ==
    15  * '''none''' -- すべてのログメッセージを抑制する。
    16  * '''file''' -- ログをファイルに出力する。[wiki:TracIni trac.ini] の''log_file''ディレクティブで指定する。
    17  * '''stderr''' -- コンソールにすべてのログを出力する。([wiki:TracStandalone tracd] のみ)
    18  * '''syslog''' -- (UNIX) ローカルの名前付きパイプの'/dev/log'経由で syslogd にログを出力する。
    19  * '''winlog''' -- (Windows) イベントログにTracのログを出力する。
     19The verbosity level 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.
    2020
    21 == ログレベル ==
    22 出力するログのレベルは[wiki:TracIni trac.ini]の''log_level''ディレクティブで指定します。ログレベルは出力するログメッセージの最低限のレベルを定義します。
    23 
    24 レベルの種類:
    25  * ''CRITICAL'' -- 最も危険なログのみ。たいていは致命的なメッセージです。
    26  * ''ERROR'' -- 処理失敗、バグ、エラーの要求。
    27  * ''WARN'' -- 警告、処理を中断するほどではないイベント。
    28  * ''INFO'' -- 診断メッセージ。すべての要求についてのログ情報。
    29  * ''DEBUG'' -- デバッグ用メッセージ。
     21The levels are:
     22 '''CRITICAL''':: Log only the most critical (typically fatal) errors.
     23 '''ERROR''':: Log failures, bugs and errors.
     24 '''WARN''':: Log warnings, non-interrupting events.
     25 '''INFO''':: Diagnostic information, log information about all processing.
     26 '''DEBUG''':: Trace messages, profiling, etc.
    3027
    3128----
    32 参考: TracIni, TracGuide, TracEnvironment
     29See also: TracIni, TracGuide, TracEnvironment