Top Description Fields Constructors Methods
ch.qos.logback.core.layout

public Class EchoLayout<E>

extends LayoutBase<E>
Class Inheritance
Imports
ch.qos.logback.core.CoreConstants, .LayoutBase

Echos the incoming object adding a line separator character(s) at the end.
Author
Ceki

Field Summary

Inherited from ch.qos.logback.core.LayoutBase:
started

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
doLayout(E
The event to format
event
)

Implements ch.qos.logback.core.Layout.doLayout.

Transform an event (of type Object) and return it as a String after appropriate formatting.
Inherited from ch.qos.logback.core.LayoutBase:
getContentTypegetContextgetFileFootergetFileHeadergetPresentationFootergetPresentationHeaderisStartedsetContextsetFileFootersetFileHeadersetPresentationFootersetPresentationHeaderstartstop

Constructor Detail

EchoLayoutback to summary
public EchoLayout()

Method Detail

doLayoutback to summary
public String doLayout(E event)

Implements ch.qos.logback.core.Layout.doLayout.

Doc from ch.qos.logback.core.Layout.doLayout.

Transform an event (of type Object) and return it as a String after appropriate formatting.

Taking in an object and returning a String is the least sophisticated way of formatting events. However, it is remarkably CPU-effective.

Parameters
event:E

The event to format

Returns:String

the event formatted as a String