org.apache.log4j.examples.appserver
クラス AppServerLoggingEvent

java.lang.Object
  |
  +--org.apache.log4j.spi.LoggingEvent
        |
        +--org.apache.log4j.examples.appserver.AppServerLoggingEvent
すべての実装インタフェース:
Serializable

public class AppServerLoggingEvent
extends LoggingEvent
implements Serializable

Represents logging events for application servers. When an affirmative logging decision is made, a LoggingEvent instance is created. This sub-class of LoggingEvent provides for a few additional attributes:

アプリケーションサーバーのロギング・イベントを表します。 断定的にロギングが決定する時、LoggingEvent のインスタンスが生成されます。 この LogginEvent のサブクラスはいくつかの追加属性を必要とします:

This class is used to add some application server related attributes to those attributes already provided by log4j. It is instanciated by AppServerCategory.forcedLog methods.

このクラスは、いくつかのアプリケーションサーバー関連属性を log4j ですでに提供されている時点での属性に追加するために使用されます。 AppServerCategory.forcedLog メソッドにより具体化されます。

作成者:
Paul Glezen
関連項目:
直列化された形式

フィールドの概要
 String component
          Name of component from which this event originated.
 String hostname
          Hostname of machine from which this event originated.
 String server
          Name of server from which this event originated.
 String version
          Version name of server/component.
 
クラス org.apache.log4j.spi.LoggingEvent から継承したフィールド
category, categoryName, fqnOfCategoryClass, priority, timeStamp
 
コンストラクタの概要
AppServerLoggingEvent(String fqnOfCategoryClass, AppServerCategory category, Priority priority, Object message, Throwable throwable)
          Instantiate an AppServerLoggingEvent from the supplied parameters.
 
クラス org.apache.log4j.spi.LoggingEvent から継承したメソッド
getLocationInformation, getMessage, getNDC, getRenderedMessage, getStartTime, getThreadName, getThrowableInformation, getThrowableStrRep
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

hostname

public String hostname
Hostname of machine from which this event originated.

このイベントが発生するマシンのホスト名。


component

public String component
Name of component from which this event originated.

このイベントが発生するコンポーネント名。


server

public String server
Name of server from which this event originated. This attribute may be more germane to CORBA/EJB environments.

このイベントが発生するサーバー名。 この属性は CORBA/EJB の環境に密接に関連します。


version

public String version
Version name of server/component.

サーバー/コンポーネントのバージョン名。

コンストラクタの詳細

AppServerLoggingEvent

public AppServerLoggingEvent(String fqnOfCategoryClass,
                             AppServerCategory category,
                             Priority priority,
                             Object message,
                             Throwable throwable)
Instantiate an AppServerLoggingEvent from the supplied parameters.

与えられたパラメータを使用して AppServerLoggingEvent をインスタンス化します。

All the fields of AppServerLoggingEvent are obtained from AppServerCategory or filled when actually needed.

AppServerLoggingEvent のすべてのフィールドは、AppServerCategory からとりだされるか、実際に必要とされるときに満たされます。

パラメータ:
fqnOfCategoryClass - The Category class name.
category - The category of this event.
priority - The priority of this event.
message - The message of this event.
throwable - The throwable of this event.
fqnOfCategoryClass - カテゴリークラス名
category - このイベントのカテゴリー
priority - このイベントの優先度
message - このイベントのメッセージ
throwable - このイベントの例外


Please notify me about new log4j releases.