public interface Layout<E> extends ContextAware, LifeCycle
Modifier and Type | Method and Description |
---|---|
String |
doLayout(E event)
Transform an event (of type Object) and return it as a String after
appropriate formatting.
|
String |
getContentType()
Returns the content type as appropriate for the implementation.
|
String |
getFileFooter()
Return the file footer for this layout.
|
String |
getFileHeader()
Return the file header for this layout.
|
String |
getPresentationFooter()
Return the footer of the logging event formatting.
|
String |
getPresentationHeader()
Return the header of the logging event formatting.
|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
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 formatString getFileHeader()
String getPresentationHeader()
String getPresentationFooter()
String getFileFooter()
String getContentType()
Copyright © 2010 - 2020 Adobe. All Rights Reserved