Changes between Version 1 and Version 2 of TracLogging


Ignore:
Timestamp:
Jun 21, 2008, 6:11:58 PM (16 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracLogging

    v1 v2  
    1 = ログ =
     1= Trac Logging =
    22[[TracGuideToc]]
    33
    4 Trac は Python の標準 [http://docs.python.org/lib/module-logging.html ロギングモジュール] (訳注: [http://www.python.jp/doc/release/lib/module-logging.html 日本語ドキュメント]) を使用したシステムメッセージのログ出力に対応しています。
     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 ログは [wiki:TracIni trac.ini] の {{{[logging]}}} セクションで設定することができます。
     6Logging is configured in the {{{[logging]}}} section in [wiki:TracIni trac.ini].
    77
    8 == 対応しているログの種類 ==
     8== Supported Logging Methods ==
    99
    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 のログを出力する。
     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.
    1616
    17 == ログレベル ==
     17== Log Levels ==
    1818
    19 出力するログのレベルは [wiki:TracIni trac.ini] の ''log_level'' ディレクティブで指定します。ログレベルは出力するログメッセージの最低限のレベルを定義します。
     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  '''CRITICAL''':: 最も危険なログのみ。たいていは致命的なメッセージです。
    23  '''ERROR''':: 処理失敗、バグ、エラーの要求。
    24  '''WARN''':: 警告、処理を中断するほどではないイベント。
    25  '''INFO''':: 診断メッセージ。すべてのプロセスについてのログ情報。
    26  '''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.
    2727
    2828----