public final class HTMLLayout extends AbstractStringLayout
footer, header, LOGGER
Modifier and Type | Method and Description |
---|---|
static HTMLLayout |
createLayout(String locationInfo,
String title,
String contentType,
String charsetName,
String fontSize,
String font)
Create an HTML Layout.
|
Map<String,String> |
getContentFormat()
HTMLLayout's format is sufficiently specified via the content type.
|
String |
getContentType()
Returns the content type output by this layout.
|
byte[] |
getFooter()
Returns the appropriate HTML footers.
|
byte[] |
getHeader()
Returns appropriate HTML headers.
|
String |
toSerializable(LogEvent event)
Format as a String.
|
getCharset, toByteArray
setFooter, setHeader
public String toSerializable(LogEvent event)
event
- The Logging Event.public Map<String,String> getContentFormat()
public String getContentType()
Layout
getContentType
in interface Layout<String>
getContentType
in class AbstractStringLayout
public byte[] getHeader()
public byte[] getFooter()
public static HTMLLayout createLayout(String locationInfo, String title, String contentType, String charsetName, 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".charsetName
- The character set to use. If not specified, the default will be used.fontSize
- The font size of the text.font
- The font to use for the text.Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.