|
Log4j 1.3alpha0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log4j.Layout | +--org.apache.log4j.EnhancedHTMLLayout
Field Summary | |
protected int |
BUF_SIZE
|
static String |
DEFAULT_CONVERSION_PATTERN
Default pattern string for log output. |
protected int |
MAX_CAPACITY
|
static String |
TTCC_CONVERSION_PATTERN
A conversion pattern equivalent to the TTCCCLayout. |
Fields inherited from class org.apache.log4j.Layout |
charArrayWriter, ignoresThrowable, LINE_SEP, LINE_SEP_LEN |
Constructor Summary | |
EnhancedHTMLLayout()
Constructs a PatternLayout using the DEFAULT_LAYOUT_PATTERN. |
|
EnhancedHTMLLayout(String pattern)
Constructs a PatternLayout using the supplied conversion pattern. |
Method Summary | |
void |
activateOptions()
Does not do anything as options become effective |
protected PatternParser |
createPatternParser(String pattern)
Returns PatternParser used to parse the conversion string. |
void |
format(Writer output,
LoggingEvent event)
|
String |
getContentType()
Returns the content type output by this layout, i.e "text/html". |
String |
getConversionPattern()
Returns the value of the ConversionPattern option. |
String |
getFooter()
Returns the appropriate HTML footers. |
String |
getHeader()
Returns appropriate HTML headers. |
String |
getHighlightLineColor()
|
String |
getTitle()
Returns the current value of the Title option. |
boolean |
ignoresThrowable()
The HTML layout handles the throwable contained in logging events. |
void |
setConversionPattern(String conversionPattern)
Set the ConversionPattern option. |
void |
setHighlightLineColor(String highlightLineColor)
|
void |
setTitle(String title)
The Title option takes a String value. |
Methods inherited from class org.apache.log4j.Layout |
format, setFooter, setHeader, setIgnoresThrowable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String DEFAULT_CONVERSION_PATTERN
public static final String TTCC_CONVERSION_PATTERN
protected final int BUF_SIZE
protected final int MAX_CAPACITY
Constructor Detail |
public EnhancedHTMLLayout()
public EnhancedHTMLLayout(String pattern)
Method Detail |
public void setConversionPattern(String conversionPattern)
public String getConversionPattern()
public void activateOptions()
protected PatternParser createPatternParser(String pattern)
public void setTitle(String title)
Defaults to 'Log4J Log Messages'.
public String getTitle()
public String getContentType()
getContentType
in class Layout
public String getHeader()
getHeader
in class Layout
public String getFooter()
getFooter
in class Layout
public boolean ignoresThrowable()
false
.
ignoresThrowable
in class Layout
public String getHighlightLineColor()
public void setHighlightLineColor(String highlightLineColor)
highlightLineColor
- The highlightLineColor to set.public void format(Writer output, LoggingEvent event) throws IOException
format
in class Layout
IOException
Layout.format(java.io.Writer, org.apache.log4j.spi.LoggingEvent)
|
Log4j 1.3alpha0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |