|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.Layout
com.logicaldoc.web.util.HTMLLayout
public class HTMLLayout
This layout outputs events in a HTML table. Appenders using this layout should have their encoding set to UTF-8 or UTF-16, otherwise events containing non ASCII characters could result in corrupted log files.
Field Summary | |
---|---|
protected int |
BUF_SIZE
|
protected int |
MAX_CAPACITY
|
static java.lang.String |
TITLE_OPTION
A string constant used in naming the option for setting the the HTML document title. |
Fields inherited from class org.apache.log4j.Layout |
---|
LINE_SEP, LINE_SEP_LEN |
Constructor Summary | |
---|---|
HTMLLayout()
|
Method Summary | |
---|---|
void |
activateOptions()
No options to activate. |
java.lang.String |
format(org.apache.log4j.spi.LoggingEvent event)
|
java.lang.String |
getContentType()
Returns the content type output by this layout, i.e "text/html". |
java.lang.String |
getFooter()
Returns the appropriate HTML footers. |
java.lang.String |
getHeader()
Returns appropriate HTML headers. |
boolean |
getLocationInfo()
Returns the current value of the LocationInfo option. |
java.lang.String |
getTitle()
Returns the current value of the Title option. |
boolean |
ignoresThrowable()
The HTML layout handles the throwable contained in logging events. |
void |
setLocationInfo(boolean flag)
The LocationInfo option takes a boolean value. |
void |
setTitle(java.lang.String title)
The Title option takes a String value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int BUF_SIZE
protected final int MAX_CAPACITY
public static final java.lang.String TITLE_OPTION
Constructor Detail |
---|
public HTMLLayout()
Method Detail |
---|
public void setLocationInfo(boolean flag)
If you are embedding this layout within an org.apache.log4j.net.SMTPAppender
then make sure to set the
LocationInfo option of that appender as well.
public boolean getLocationInfo()
public void setTitle(java.lang.String title)
Defaults to 'Log4J Log Messages'.
public java.lang.String getTitle()
public java.lang.String getContentType()
getContentType
in class org.apache.log4j.Layout
public void activateOptions()
public java.lang.String format(org.apache.log4j.spi.LoggingEvent event)
format
in class org.apache.log4j.Layout
public java.lang.String getHeader()
getHeader
in class org.apache.log4j.Layout
public java.lang.String getFooter()
getFooter
in class org.apache.log4j.Layout
public boolean ignoresThrowable()
false
.
ignoresThrowable
in class org.apache.log4j.Layout
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |