public abstract class AbstractStringLayout extends AbstractLayout<String>
footer, header, LOGGER
Modifier | Constructor and Description |
---|---|
protected |
AbstractStringLayout(Charset charset) |
protected |
AbstractStringLayout(Charset charset,
byte[] header,
byte[] footer) |
Modifier and Type | Method and Description |
---|---|
protected Charset |
getCharset() |
String |
getContentType()
Returns the content type output by this layout.
|
byte[] |
toByteArray(LogEvent event)
Formats the Log Event as a byte array.
|
getFooter, getHeader
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentFormat, toSerializable
protected AbstractStringLayout(Charset charset, byte[] header, byte[] footer)
protected AbstractStringLayout(Charset charset)
public byte[] toByteArray(LogEvent event)
event
- The Log Event.public String getContentType()
Layout
protected Charset getCharset()
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.