|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The Object type that will be returned on the toSerializable(LogEvent)
call.public interface Layout<T extends Serializable>
Lays out a LogEvent in different formats.
The formats are: byte[], or an implementor of Serializable, like byte[]
,
String, and LogEvent.
Method Summary | |
---|---|
byte[] |
getFooter()
Returns the format for the layout format. |
byte[] |
getHeader()
Returns the header for the layout format. |
byte[] |
toByteArray(LogEvent event)
Formats the event suitable for display. |
T |
toSerializable(LogEvent event)
Formats the event as an Object that can be serialized. |
Method Detail |
---|
byte[] getFooter()
byte[] getHeader()
byte[] toByteArray(LogEvent event)
event
- The Logging Event.
T toSerializable(LogEvent event)
event
- The Logging Event.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |