|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.layout.AbstractLayout<String>
org.apache.logging.log4j.core.layout.AbstractStringLayout
org.apache.logging.log4j.core.layout.HTMLLayout
public final 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 |
---|
Fields inherited from class org.apache.logging.log4j.core.layout.AbstractLayout |
---|
footer, header, LOGGER |
Method Summary | |
---|---|
static HTMLLayout |
createLayout(String locationInfo,
String title,
String contentType,
String charset,
String fontSize,
String font)
Create an HTML Layout. |
byte[] |
getFooter()
Returns the appropriate HTML footers. |
byte[] |
getHeader()
Returns appropriate HTML headers. |
String |
toSerializable(LogEvent event)
Format as a String. |
Methods inherited from class org.apache.logging.log4j.core.layout.AbstractStringLayout |
---|
getCharset, toByteArray |
Methods inherited from class org.apache.logging.log4j.core.layout.AbstractLayout |
---|
setFooter, setHeader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String toSerializable(LogEvent event)
event
- The Logging Event.
public byte[] getHeader()
getHeader
in interface Layout<String>
getHeader
in class AbstractLayout<String>
public byte[] getFooter()
getFooter
in interface Layout<String>
getFooter
in class AbstractLayout<String>
public static HTMLLayout createLayout(String locationInfo, String title, String contentType, String charset, String fontSize, String font)
locationInfo
- If "true", location information will be included. The default is false.title
- The title to include in the file header. If none is specified the default title will be used.contentType
- The content type. Defaults to "text/html".charset
- The character set to use. If not specified, the default will be used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |