Top Methods
ch.qos.logback.core

public Interface Layout<E>

extends ContextAware, LifeCycle
Known Direct Implementers
ch.qos.logback.core.LayoutBase
Imports
ch.qos.logback.core.spi.ContextAware, .LifeCycle

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the event formatted as a String
doLayout
(E
The event to format
event
)

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

public String
getContentType()

Returns the content type as appropriate for the implementation.

public String

Returns:

The footer.
getFileFooter
()

Return the file footer for this layout.

public String

Returns:

The header.
getFileHeader
()

Return the file header for this layout.

public String

Returns:

The footer.
getPresentationFooter
()

Return the footer of the logging event formatting.

public String

Returns:

The header.
getPresentationHeader
()

Return the header of the logging event formatting.

Inherited from ch.qos.logback.core.spi.ContextAware:
addErroraddErroraddInfoaddInfoaddStatusaddWarnaddWarngetContextsetContext
Inherited from ch.qos.logback.core.spi.LifeCycle:
isStartedstartstop

Method Detail

doLayoutback to summary
public String doLayout(E event)

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

getContentTypeback to summary
public String getContentType()

Returns the content type as appropriate for the implementation.

getFileFooterback to summary
public String getFileFooter()

Return the file footer for this layout. The returned value may be null.

Returns:String

The footer.

getFileHeaderback to summary
public String getFileHeader()

Return the file header for this layout. The returned value may be null.

Returns:String

The header.

getPresentationFooterback to summary
public String getPresentationFooter()

Return the footer of the logging event formatting. The returned value may be null.

Returns:String

The footer.

getPresentationHeaderback to summary
public String getPresentationHeader()

Return the header of the logging event formatting. The returned value may be null.

Returns:String

The header.