|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object | +--org.apache.log4j.Layout
Extend this abstract class to create your own log layout format.
あなた自身でログのレイアウトフォーマットを作成するためには、この抽象クラスを拡張します。
| フィールドの概要 | |
static String |
LINE_SEP
|
static int |
LINE_SEP_LEN
|
| コンストラクタの概要 | |
Layout()
|
|
| メソッドの概要 | |
abstract String |
format(LoggingEvent event)
Implement this method to create your own layout format. |
String |
getContentType()
Returns the content type output by this layout. |
String |
getFooter()
Returns the footer for the layout format. |
String |
getHeader()
Returns the header for the layout format. |
abstract boolean |
ignoresThrowable()
If the layout handles the throwable object contained within LoggingEvent, then the layout should return
false. |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース org.apache.log4j.spi.OptionHandler から継承したメソッド |
activateOptions, getOptionStrings, setOption |
| フィールドの詳細 |
public static final String LINE_SEP
public static final int LINE_SEP_LEN
| コンストラクタの詳細 |
public Layout()
| メソッドの詳細 |
public abstract String format(LoggingEvent event)
あなた自身でレイアウトフォーマットを作成するためには、このメソッドを実装します。
public String getContentType()
このレイアウトの出力のコンテントタイプを返します。 ベースクラスは、"text/plain" を返します。
public String getHeader()
null.
レイアウトフォーマットに関するヘッダを返します。
ベースクラスは、null を返します。
public String getFooter()
null.
レイアウトフォーマットに関するフッタを返します。
ベースクラスは、null を返します。
public abstract boolean ignoresThrowable()
LoggingEvent, then the layout should return
false. Otherwise, if the layout ignores throwable
object, then the layout should return true.
もし、レイアウトが LoggingEvent 内に含まれる throwable オブジェクトを処理する場合、レイアウトは、false を返す必要があります。
反対に、もし、レイアウトが throwable オブジェクトを無視する場合、レイアウトは、true を返す必要があります。
The SimpleLayout, TTCCLayout, PatternLayout all return true. The XMLLayout returns false.
SimpleLayout、TTCCLayout、PatternLayout の全てのクラスは、true を返します。
XMLLayout は、false を返します。
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||