ch.qos.logback.core
Class LayoutBase<E>
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.LayoutBase<E>
- All Implemented Interfaces:
- Layout<E>, ContextAware, LifeCycle
- Direct Known Subclasses:
- EchoLayout, HTMLLayoutBase, PatternLayoutBase
public abstract class LayoutBase<E>
- extends ContextAwareBase
- implements Layout<E>
Field Summary |
protected boolean |
started
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
started
protected boolean started
LayoutBase
public LayoutBase()
setContext
public void setContext(Context context)
- Specified by:
setContext
in interface ContextAware
- Overrides:
setContext
in class ContextAwareBase
getContext
public Context getContext()
- Specified by:
getContext
in interface ContextAware
- Overrides:
getContext
in class ContextAwareBase
start
public void start()
- Specified by:
start
in interface LifeCycle
stop
public void stop()
- Specified by:
stop
in interface LifeCycle
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interface LifeCycle
getFileHeader
public String getFileHeader()
- Description copied from interface:
Layout
- Return the file header for this layout. The returned value may be null.
- Specified by:
getFileHeader
in interface Layout<E>
- Returns:
- The header.
getPresentationHeader
public String getPresentationHeader()
- Description copied from interface:
Layout
- Return the header of the logging event formatting. The returned value
may be null.
- Specified by:
getPresentationHeader
in interface Layout<E>
- Returns:
- The header.
getPresentationFooter
public String getPresentationFooter()
- Description copied from interface:
Layout
- Return the footer of the logging event formatting. The returned value
may be null.
- Specified by:
getPresentationFooter
in interface Layout<E>
- Returns:
- The footer.
getFileFooter
public String getFileFooter()
- Description copied from interface:
Layout
- Return the file footer for this layout. The returned value may be null.
- Specified by:
getFileFooter
in interface Layout<E>
- Returns:
- The footer.
getContentType
public String getContentType()
- Description copied from interface:
Layout
- Returns the content type as appropriate for the implementation.
- Specified by:
getContentType
in interface Layout<E>
- Returns:
setFileHeader
public void setFileHeader(String header)
setFileFooter
public void setFileFooter(String footer)
setPresentationHeader
public void setPresentationHeader(String header)
setPresentationFooter
public void setPresentationFooter(String footer)
Copyright © 2005-2012 QOS.ch. All Rights Reserved.