Changes between Version 3 and Version 4 of TracLogging


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

--

Legend:

Unmodified
Added
Removed
Modified
  • TracLogging

    v3 v4  
    1 = Trac Logging =
     1= ログ =
    22[[TracGuideToc]]
    33
    4 Trac supports logging of system messages using the standard [http://docs.python.org/lib/module-logging.html logging module] that comes with Python.
     4TracはPythonの標準 [http://docs.python.org/lib/module-logging.html ロギングモジュール] (訳注: [http://www.python.jp/doc/release/lib/module-logging.html 日本語ドキュメント]) を使用したシステムメッセージのログ出力をサポートしています。
    55
    6 Logging is configured in the {{{[logging]}}} section in [wiki:TracIni trac.ini].
     6ログは[wiki:TracIni trac.ini]の{{{[logging]}}}セクションで設定することができます。
    77
    8 == Supported Logging Methods ==
     8== サポートするログの種類 ==
    99
    10 The 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.
     10ログの出力方法は設定ファイルの `log_type` オプションで設定されます。以下の値が使用できます。
     11 '''none''':: すべてのログメッセージを抑制する。
     12 '''file''':: ログをファイルに出力する。[wiki:TracIni trac.ini] の''log_file''ディレクティブで指定する。
     13 '''stderr''':: コンソールにすべてのログを出力する。([wiki:TracStandalone tracd] のみ)
     14 '''syslog''':: (UNIX) ローカルの名前付きパイプの`/dev/log`経由で syslogd にログを出力する。
     15 '''eventlog''':: (Windows) イベントログにTracのログを出力する。
    1616
    17 == Log Levels ==
     17== ログレベル ==
    1818
    19 The 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.
     19出力するログのレベルは[wiki:TracIni trac.ini]の''log_level''ディレクティブで指定します。ログレベルは出力するログメッセージの最低限のレベルを定義します。
    2020
    21 The 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.
     21レベルの種類:
     22 '''CRITICAL''':: 最も危険なログのみ。たいていは致命的なメッセージです。
     23 '''ERROR''':: 処理失敗、バグ、エラーの要求。
     24 '''WARN''':: 警告、処理を中断するほどではないイベント。
     25 '''INFO''':: 診断メッセージ。すべてのプロセスについてのログ情報。
     26 '''DEBUG''':: トレースメッセージ、プロファイリングなど。
    2727
    2828----