org.apache.log4j.nt
クラス NTEventLogAppender

java.lang.Object
  |
  +--org.apache.log4j.AppenderSkeleton
        |
        +--org.apache.log4j.nt.NTEventLogAppender
すべての実装インタフェース:
Appender, OptionHandler

public class NTEventLogAppender
extends AppenderSkeleton

Append to the NT event log system.

NT のイベント・ログ・システムに追加します。

WARNING This appender can only be installed and used on a Windows system.

警告 このアペンダは、Windows システムだけで、インストールされ使用されます。

Do not forget to place the file NTEventLogAppender.dll in a directory that is on the PATH of the Windows system. Otherwise, you will get a java.lang.UnsatisfiedLinkError.

Windows システムの PATH 上にあるディレクトリ内に ファイル NTEventLogAppender.dll を配置するのを忘れないで下さい。 そうしなければ、あなたは、java.lang.UnsatisfiedLinkError を得ることになります。

作成者:
Chris Taylor, Jim Cakalic

フィールドの概要
static String SOURCE_OPTION
          推奨されていません。 Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.

今日、オプションは、JavaBeansパラダイムを使用して処理されます。 この定数は、もはや必要ありませんし、近いうちに削除されるでしょう。

 
クラス org.apache.log4j.AppenderSkeleton から継承したフィールド
closed, errorHandler, headFilter, layout, name, tailFilter, threshold, THRESHOLD_OPTION
 
コンストラクタの概要
NTEventLogAppender()
           
NTEventLogAppender(Layout layout)
           
NTEventLogAppender(String source)
           
NTEventLogAppender(String source, Layout layout)
           
NTEventLogAppender(String server, String source)
           
NTEventLogAppender(String server, String source, Layout layout)
           
 
メソッドの概要
 void activateOptions()
          Derived appenders should override this method if option structure requires it.
 void append(LoggingEvent event)
          Subclasses of AppenderSkeleton should implement this method to perform actual logging.
 void close()
          Release any resources allocated within the appender such as file handles, network connections, etc.
 void finalize()
          Finalize this appender by calling the imlenentation's close method.
 String[] getOptionStrings()
          推奨されていません。 We now use JavaBeans introspection to configure components. Options strings are no longer needed.

今日、私たちは、コンポーネントの設定には、JavaBeansのイントロスペクションを使用します。 オプション文字列は、もはや必要ありません。

 String getSource()
           
 boolean requiresLayout()
          The NTEventLogAppender requires a layout.
 void setOption(String key, String value)
          Set option to value.
 void setSource(String source)
          The Source option which names the source of the event.
 
クラス org.apache.log4j.AppenderSkeleton から継承したメソッド
addFilter, clearFilters, doAppend, getErrorHandler, getFilter, getFirstFilter, getLayout, getName, getThreshold, isAsSevereAsThreshold, setErrorHandler, setLayout, setName, setThreshold
 
クラス java.lang.Object から継承したメソッド
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

SOURCE_OPTION

public static final String SOURCE_OPTION
推奨されていません。 Options are now handled using the JavaBeans paradigm. This constant is not longer needed and will be removed in the near term.

今日、オプションは、JavaBeansパラダイムを使用して処理されます。 この定数は、もはや必要ありませんし、近いうちに削除されるでしょう。

The string constant used in naming the source of the event. The current value of this constant is Source.

イベントの出所を指定するために使用される文字列定数です。 この文字列の現在の値は、Source です。

コンストラクタの詳細

NTEventLogAppender

public NTEventLogAppender()

NTEventLogAppender

public NTEventLogAppender(String source)

NTEventLogAppender

public NTEventLogAppender(String server,
                          String source)

NTEventLogAppender

public NTEventLogAppender(Layout layout)

NTEventLogAppender

public NTEventLogAppender(String source,
                          Layout layout)

NTEventLogAppender

public NTEventLogAppender(String server,
                          String source,
                          Layout layout)
メソッドの詳細

getOptionStrings

public String[] getOptionStrings()
推奨されていません。 We now use JavaBeans introspection to configure components. Options strings are no longer needed.

今日、私たちは、コンポーネントの設定には、JavaBeansのイントロスペクションを使用します。 オプション文字列は、もはや必要ありません。

Returns the option names for this component.

このコンポーネントのオプション名を返します。

オーバーライド:
クラス AppenderSkeleton 内の getOptionStrings

setOption

public void setOption(String key,
                      String value)
推奨されていません。 Use the setter method for the option directly instead of the generic setOption method.

一般的な setOption メソッドの代わりに、直接、オプションのためのセッタ・メソッドを使用します。

インタフェース OptionHandler の記述:
Set option to value.

オプション に設定します。

The handling of each option depends on the OptionHandler instance. Some options may become active immediately whereas other may be activated only when OptionHandler.activateOptions() is called.

各オプションの処理は、OptionHandlerのインスタンスに依存します。 いくつかのオプションは、直ぐに有効になりますが、その他は OptionHandler.activateOptions()が呼ばれる時にだけ有効になります。

オーバーライド:
クラス AppenderSkeleton 内の setOption

close

public void close()
インタフェース Appender の記述:
Release any resources allocated within the appender such as file handles, network connections, etc.

ファイルハンドルや、ネットワークのコネクションなどの、アペンダー内に位置づけられたリソースを開放します。

It is a programming error to append to a closed appender.

閉じたアペンダーに追加しようとするとプログラミングエラーになります。


activateOptions

public void activateOptions()
クラス AppenderSkeleton の記述:
Derived appenders should override this method if option structure requires it.

派生したアペンダーは、オプション構造がこのメソッドを要求する場合、このメソッドをオーバーライドする必要がある。

オーバーライド:
クラス AppenderSkeleton 内の activateOptions

append

public void append(LoggingEvent event)
クラス AppenderSkeleton の記述:
Subclasses of AppenderSkeleton should implement this method to perform actual logging. See also AppenderSkeleton.doAppend method.

AppenderSkeletonのサブクラスは実際にロギングを行うためにこのメソッドを実装する必要があります。 AppenderSkeleton.doAppendメソッドを参照してください。

オーバーライド:
クラス AppenderSkeleton 内の append

finalize

public void finalize()
クラス AppenderSkeleton の記述:
Finalize this appender by calling the imlenentation's close method.

実装クラスのcloseメソッドを呼ぶことでこのアペンダーをファイナライズします。

オーバーライド:
クラス AppenderSkeleton 内の finalize

setSource

public void setSource(String source)
The Source option which names the source of the event. The current value of this constant is Source.

イベントの出所を指定する Source オプションです。 この定数の現在の値は、Source です。


getSource

public String getSource()

requiresLayout

public boolean requiresLayout()
The NTEventLogAppender requires a layout. Hence, this method always returns true.

NTEventLogAppender はレイアウトを要求します。 従って、このメソッドは必ず、true を返します。



Please notify me about new log4j releases.