Top Fields Constructors Methods
ch.qos.logback.core

public abstract Class LayoutBase<E>

extends ContextAwareBase
implements Layout<E>
Class Inheritance
All Implemented Interfaces
ch.qos.logback.core.Layout, ch.qos.logback.core.spi.LifeCycle, ch.qos.logback.core.spi.ContextAware
Known Direct Subclasses
ch.qos.logback.core.html.HTMLLayoutBase, ch.qos.logback.core.layout.EchoLayout, ch.qos.logback.core.pattern.PatternLayoutBase
Imports
ch.qos.logback.core.spi.ContextAwareBase

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv String
pack-priv String
pack-priv String
protected boolean
Inherited from ch.qos.logback.core.spi.ContextAwareBase:
context

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getContentType()

Implements ch.qos.logback.core.Layout.getContentType.

Returns the content type as appropriate for the implementation.
public Context
public String
getFileFooter()

Implements ch.qos.logback.core.Layout.getFileFooter.

Return the file footer for this layout.
public String
getFileHeader()

Implements ch.qos.logback.core.Layout.getFileHeader.

Return the file header for this layout.
public String
getPresentationFooter()

Implements ch.qos.logback.core.Layout.getPresentationFooter.

Return the footer of the logging event formatting.
public String
getPresentationHeader()

Implements ch.qos.logback.core.Layout.getPresentationHeader.

Return the header of the logging event formatting.
public boolean
public void
public void
public void
public void
public void
public void
public void
Inherited from ch.qos.logback.core.spi.ContextAwareBase:
addErroraddErroraddInfoaddInfoaddStatusaddWarnaddWarngetDeclaredOrigingetStatusManager

Field Detail

fileFooterback to summary
pack-priv String fileFooter
fileHeaderback to summary
pack-priv String fileHeader
presentationFooterback to summary
pack-priv String presentationFooter
presentationHeaderback to summary
pack-priv String presentationHeader
startedback to summary
protected boolean started

Constructor Detail

LayoutBaseback to summary
public LayoutBase()

Method Detail

getContentTypeback to summary
public String getContentType()

Implements ch.qos.logback.core.Layout.getContentType.

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

Returns the content type as appropriate for the implementation.

getContextback to summary
public Context getContext()

Overrides ch.qos.logback.core.spi.ContextAwareBase.getContext.

Implements ch.qos.logback.core.spi.ContextAware.getContext.

getFileFooterback to summary
public String getFileFooter()

Implements ch.qos.logback.core.Layout.getFileFooter.

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

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

Returns:String

The footer.

getFileHeaderback to summary
public String getFileHeader()

Implements ch.qos.logback.core.Layout.getFileHeader.

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

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

Returns:String

The header.

getPresentationFooterback to summary
public String getPresentationFooter()

Implements ch.qos.logback.core.Layout.getPresentationFooter.

Doc from ch.qos.logback.core.Layout.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()

Implements ch.qos.logback.core.Layout.getPresentationHeader.

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

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

Returns:String

The header.

isStartedback to summary
public boolean isStarted()

Implements ch.qos.logback.core.spi.LifeCycle.isStarted.

setContextback to summary
public void setContext(Context context)

Overrides ch.qos.logback.core.spi.ContextAwareBase.setContext.

Implements ch.qos.logback.core.spi.ContextAware.setContext.

setFileFooterback to summary
public void setFileFooter(String footer)
setFileHeaderback to summary
public void setFileHeader(String header)
setPresentationFooterback to summary
public void setPresentationFooter(String footer)
setPresentationHeaderback to summary
public void setPresentationHeader(String header)
startback to summary
public void start()

Implements ch.qos.logback.core.spi.LifeCycle.start.

stopback to summary
public void stop()

Implements ch.qos.logback.core.spi.LifeCycle.stop.