|
||||||||||
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<T>
T
- The Class that the Layout will format the LogEvent into.public abstract class AbstractLayout<T extends Serializable>
Abstract base class for Layouts.
Field Summary | |
---|---|
protected byte[] |
footer
The footer to add when the stream is closed. |
protected byte[] |
header
The header to include when the stream is opened. |
protected static Logger |
LOGGER
Allow subclasses access to the status logger without creating another instance. |
Constructor Summary | |
---|---|
AbstractLayout()
|
Method Summary | |
---|---|
byte[] |
getFooter()
Returns the footer, if one is available. |
byte[] |
getHeader()
Returns the header, if one is available. |
void |
setFooter(byte[] footer)
Set the footer. |
void |
setHeader(byte[] header)
Set the header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.logging.log4j.core.Layout |
---|
getContentFormat, getContentType, toByteArray, toSerializable |
Field Detail |
---|
protected static final Logger LOGGER
protected byte[] header
protected byte[] footer
Constructor Detail |
---|
public AbstractLayout()
Method Detail |
---|
public byte[] getHeader()
getHeader
in interface Layout<T extends Serializable>
public void setHeader(byte[] header)
header
- The header.public byte[] getFooter()
getFooter
in interface Layout<T extends Serializable>
public void setFooter(byte[] footer)
footer
- The footer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.