org.apache.commons.logging.impl
クラス Log4JLogger

java.lang.Object
  拡張org.apache.commons.logging.impl.Log4JLogger
すべての実装インタフェース:
Log

public final class Log4JLogger
extends Object
implements Log

Log4J の Logger に直接マップする Log の実装クラスです。 対応する Logger インスタンスの初期設定は Log4J のドキュメントに記述されている 方法と同じように行ってください。

Implementation of {@link Log} that maps directly to a Log4J Logger. Initial configuration of the corresponding Logger instances should be done in the usual manner, as outlined in the Log4J documentation.

バージョン:
$Id: Log4JLogger.java,v 1.4 2004/04/08 13:09:37 hioki Exp $
作成者:
Scott Sanders, Rod Waldhoff, Robert Burrell Donkin
翻訳者:
日置 聡
校正者:
芦沢 嘉典
翻訳状況:
校了

フィールドの概要
private static String FQCN
          Log4JLogger クラスの完全修飾名。
private  org.apache.log4j.Logger logger
          使用するロガー。
 
コンストラクタの概要
Log4JLogger()
           
Log4JLogger(org.apache.log4j.Logger logger)
          log4j ファクトリを指定するためのコンストラクタ。
Log4JLogger(String name)
          ベースコンストラクタ。
 
メソッドの概要
 void debug(Object message)
          優先度 DEBUG で Log4j Logger にメッセージをログ出力します。
 void debug(Object message, Throwable t)
          優先度 DEBUG で Log4j Logger にエラーをログ出力します。
 void error(Object message)
          優先度 ERROR で Log4j Logger にメッセージをログ出力します。
 void error(Object message, Throwable t)
          優先度 ERROR で Log4j Logger にエラーをログ出力します。
 void fatal(Object message)
          優先度 FATAL で Log4j Logger にメッセージをログ出力します。
 void fatal(Object message, Throwable t)
          優先度 FATAL で Log4j Logger にエラーをログ出力します。
 org.apache.log4j.Logger getLogger()
          現在使用している Logger インスタンスを返します。
 void info(Object message)
          優先度 INFO で Log4j Logger にメッセージをログ出力します。
 void info(Object message, Throwable t)
          優先度 INFO で Log4j Logger にエラーをログ出力します。
 boolean isDebugEnabled()
          使用している Log4j Logger にて優先度 DEBUG が有効かどうかチェックします。
 boolean isErrorEnabled()
          使用している Log4j Logger にて優先度 ERROR が有効かどうかチェックします。
 boolean isFatalEnabled()
          使用している Log4j Logger にて優先度 FATAL が有効かどうかチェックします。
 boolean isInfoEnabled()
          使用している Log4j Logger にて優先度 INFO が有効かどうかチェックします。
 boolean isTraceEnabled()
          使用している Log4j Logger にて優先度 TRACE が有効かどうかチェックします。
 boolean isWarnEnabled()
          使用している Log4j Logger にて優先度 WARN が有効かどうかチェックします。
 void trace(Object message)
          優先度 TRACE で Log4j Logger にメッセージをログ出力します。
 void trace(Object message, Throwable t)
          優先度 TRACE で Log4j Logger にエラーをログ出力します。
 void warn(Object message)
          優先度 WARN で Log4j Logger にメッセージをログ出力します。
 void warn(Object message, Throwable t)
          優先度 WARN で Log4j Logger にエラーをログ出力します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

FQCN

private static final String FQCN
Log4JLogger クラスの完全修飾名。
The fully qualified name of the Log4JLogger class.


logger

private org.apache.log4j.Logger logger
使用するロガー。
Log to this logger

コンストラクタの詳細

Log4JLogger

public Log4JLogger()

Log4JLogger

public Log4JLogger(String name)
ベースコンストラクタ。
Base constructor


Log4JLogger

public Log4JLogger(org.apache.log4j.Logger logger)
log4j ファクトリを指定するためのコンストラクタ。
For use with a log4j factory

メソッドの詳細

trace

public void trace(Object message)
優先度 TRACE で Log4j Logger にメッセージをログ出力します。 Log4J 内では DEBUG ログレベルに対応します。
Log a message to the Log4j Logger with TRACE priority. Currently logs to DEBUG level in Log4J.

定義:
インタフェース Log 内の trace
パラメータ:
message - このメッセージをログ出力します
log this message

trace

public void trace(Object message,
                  Throwable t)
優先度 TRACE で Log4j Logger にエラーをログ出力します。 Log4J 内では DEBUG ログレベルに対応します。
Log an error to the Log4j Logger with TRACE priority. Currently logs to DEBUG level in Log4J.

定義:
インタフェース Log 内の trace
パラメータ:
message - このメッセージをログ出力します
log this message
t - この原因(となった例外)をログ出力します
log this cause

debug

public void debug(Object message)
優先度 DEBUG で Log4j Logger にメッセージをログ出力します。
Log a message to the Log4j Logger with DEBUG priority.

定義:
インタフェース Log 内の debug
パラメータ:
message - このメッセージをログします
log this message

debug

public void debug(Object message,
                  Throwable t)
優先度 DEBUG で Log4j Logger にエラーをログ出力します。
Log an error to the Log4j Logger with DEBUG priority.

定義:
インタフェース Log 内の debug
パラメータ:
message - このメッセージをログ出力します
log this message
t - この原因(となった例外)をログ出力します
log this cause

info

public void info(Object message)
優先度 INFO で Log4j Logger にメッセージをログ出力します。
Log a message to the Log4j Logger with INFO priority.

定義:
インタフェース Log 内の info
パラメータ:
message - このメッセージをログ出力します
log this message

info

public void info(Object message,
                 Throwable t)
優先度 INFO で Log4j Logger にエラーをログ出力します。
Log an error to the Log4j Logger with INFO priority.

定義:
インタフェース Log 内の info
パラメータ:
message - このメッセージをログ出力します
log this message
t - この原因(となった例外)をログ出力します
log this cause

warn

public void warn(Object message)
優先度 WARN で Log4j Logger にメッセージをログ出力します。
Log a message to the Log4j Logger with WARN priority.

定義:
インタフェース Log 内の warn
パラメータ:
message - このメッセージをログ出力します
log this message

warn

public void warn(Object message,
                 Throwable t)
優先度 WARN で Log4j Logger にエラーをログ出力します。
Log an error to the Log4j Logger with WARN priority.

定義:
インタフェース Log 内の warn
パラメータ:
message - このメッセージをログ出力します
log this message
t - この原因(となった例外)をログ出力します
log this cause

error

public void error(Object message)
優先度 ERROR で Log4j Logger にメッセージをログ出力します。
Log a message to the Log4j Logger with ERROR priority.

定義:
インタフェース Log 内の error
パラメータ:
message - このメッセージをログ出力します
log this message

error

public void error(Object message,
                  Throwable t)
優先度 ERROR で Log4j Logger にエラーをログ出力します。
Log an error to the Log4j Logger with ERROR priority.

定義:
インタフェース Log 内の error
パラメータ:
message - このメッセージをログ出力します
log this message
t - この原因(となった例外)をログ出力します
log this cause

fatal

public void fatal(Object message)
優先度 FATAL で Log4j Logger にメッセージをログ出力します。
Log a message to the Log4j Logger with FATAL priority.

定義:
インタフェース Log 内の fatal
パラメータ:
message - このメッセージをログ出力します
log this message

fatal

public void fatal(Object message,
                  Throwable t)
優先度 FATAL で Log4j Logger にエラーをログ出力します。
Log an error to the Log4j Logger with FATAL priority.

定義:
インタフェース Log 内の fatal
パラメータ:
message - このメッセージをログ出力します
log this message
t - この原因(となった例外)をログ出力します
log this cause

getLogger

public org.apache.log4j.Logger getLogger()
現在使用している Logger インスタンスを返します。
Return the native Logger instance we are using.


isDebugEnabled

public boolean isDebugEnabled()
使用している Log4j Logger にて優先度 DEBUG が有効かどうかチェックします。
Check whether the Log4j Logger used is enabled for DEBUG priority.

定義:
インタフェース Log 内の isDebugEnabled

isErrorEnabled

public boolean isErrorEnabled()
使用している Log4j Logger にて優先度 ERROR が有効かどうかチェックします。
Check whether the Log4j Logger used is enabled for ERROR priority.

定義:
インタフェース Log 内の isErrorEnabled

isFatalEnabled

public boolean isFatalEnabled()
使用している Log4j Logger にて優先度 FATAL が有効かどうかチェックします。
Check whether the Log4j Logger used is enabled for FATAL priority.

定義:
インタフェース Log 内の isFatalEnabled

isInfoEnabled

public boolean isInfoEnabled()
使用している Log4j Logger にて優先度 INFO が有効かどうかチェックします。
Check whether the Log4j Logger used is enabled for INFO priority.

定義:
インタフェース Log 内の isInfoEnabled

isTraceEnabled

public boolean isTraceEnabled()
使用している Log4j Logger にて優先度 TRACE が有効かどうかチェックします。 Log4J の場合、このメソッドは isDebugEnabled() の結果を返します。
Check whether the Log4j Logger used is enabled for TRACE priority. For Log4J, this returns the value of isDebugEnabled()

定義:
インタフェース Log 内の isTraceEnabled

isWarnEnabled

public boolean isWarnEnabled()
使用している Log4j Logger にて優先度 WARN が有効かどうかチェックします。
Check whether the Log4j Logger used is enabled for WARN priority.

定義:
インタフェース Log 内の isWarnEnabled


このドキュメントは、Ja-Jakartaにより訳されました。 コメントがある場合は report@jajakarta.orgまでお願いします。
Translated into Japanese by jajakarta.org. The original page is here.
Copyright (c) 2002-2003 - Apache Software Foundation