public interface Layout<E> extends ContextAware, LifeCycle
Modifier and Type | Method and Description |
---|---|
java.lang.String |
doLayout(E event)
Transform an event (of type Object) and return it as a String after
appropriate formatting.
|
java.lang.String |
getContentType()
Returns the content type as appropriate for the implementation.
|
java.lang.String |
getFileFooter()
Return the file footer for this layout.
|
java.lang.String |
getFileHeader()
Return the file header for this layout.
|
java.lang.String |
getPresentationFooter()
Return the footer of the logging event formatting.
|
java.lang.String |
getPresentationHeader()
Return the header of the logging event formatting.
|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
java.lang.String doLayout(E event)
Taking in an object and returning a String is the least sophisticated way of formatting events. However, it is remarkably CPU-effective.
event
- The event to formatjava.lang.String getFileHeader()
java.lang.String getPresentationHeader()
java.lang.String getPresentationFooter()
java.lang.String getFileFooter()
java.lang.String getContentType()
Copyright © 2010 - 2020 Adobe. All Rights Reserved