|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Implement this interface for your own strategies for printing log statements.
あなた自身の運営においてログステートメントを出力するには、このインタフェースを実装します。
| メソッドの概要 | |
void |
addFilter(Filter newFilter)
Add a filter to the end of the filter list. |
void |
clearFilters()
Clear the list of filters by removing all the filters in it. |
void |
close()
Release any resources allocated within the appender such as file handles, network connections, etc. |
void |
doAppend(LoggingEvent event)
Log in Appender specific way. |
ErrorHandler |
getErrorHandler()
Returns the ErrorHandler for this appender.
|
Filter |
getFilter()
Returns the head Filter. |
Layout |
getLayout()
Returns this appenders layout. |
String |
getName()
Get the name of this appender. |
boolean |
requiresLayout()
Configurators call this method to determine if the appender requires a layout. |
void |
setErrorHandler(ErrorHandler errorHandler)
Set the ErrorHandler for this appender.
|
void |
setLayout(Layout layout)
Set the Layout for this appender.
|
void |
setName(String name)
Set the name of this appender. |
| メソッドの詳細 |
public void addFilter(Filter newFilter)
フィルタのリストの最後に新規のフィルタを追加します。
public Filter getFilter()
先頭のフィルタを返します。フィルタは、リンクトリストとして管理されているので、アペンダー上の全てのフィルタは、この結果を通して利用可能になります。
先頭のフィルタまたは全くフィルタが存在しなければ、nullを返します。
public void clearFilters()
リスト内の全てのフィルタを削除することで、フィルタのリストをクリアします。
public void close()
ファイルハンドルや、ネットワークのコネクションなどの、アペンダー内に位置づけられたリソースを開放します。
It is a programming error to append to a closed appender.
閉じたアペンダーに追加しようとするとプログラミングエラーになります。
public void doAppend(LoggingEvent event)
設定した通りに、アペンダーにログを出力します。
public String getName()
このアペンダーの名前を返します。名前は、ユニークにアペンダーを認識させます。
public void setErrorHandler(ErrorHandler errorHandler)
ErrorHandler for this appender.
このアペンダーに対し、ErrorHandlerを設定します。
public ErrorHandler getErrorHandler()
ErrorHandler for this appender.
このアペンダーに関する、ErrorHandlerを返します。
public void setLayout(Layout layout)
Layout for this appender.
このアペンダーに対し、Layoutを設定します。
public Layout getLayout()
このアペンダーのレイアウトを返します。
public void setName(String name)
このアペンダーに名前を設定します。名前は、このアペンダーを一意づける他のコンポーネントによって使用されます。
public boolean requiresLayout()
true,
meaning that layout is required, then the configurator will
configure an layout using the configuration information at its
disposal. If this method returns false, meaning that
a layout is not required, then layout configuration will be
skipped even if there is available layout configuration
information at the disposal of the configurator..
コンフィギュレータが、アペンダーがレイアウトを要求するかどうかを決定するためこのメソッドを呼び出します。このメソッドが、trueを返した場合は、レイアウトが要求されないことを表します。その時、コンフィギュレータは、その処理でコンフィギュレーションの情報を使うレイアウトを構築します。このメソッドが、falseを返した場合は、レイアウトが要求されないことを表します。その時、レイアウトのコンフィギュレーションは、コンフィギュレータの処理で利用可能なレイアウトのコンフィギュレーション情報の有無にかかわらずスキップされます...
In the rather exceptional case, where the appender
implementation admits a layout but can also work without it, then
the appender should return true.
かなり例外的なケースとして、アペンダーの実装クラスでレイアウトを許容するが、処理できない場合であっても、アペンダーは、trueを返すようになっています。
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||