|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.LayoutBase<E>
ch.qos.logback.core.html.HTMLLayoutBase<E>
public abstract class HTMLLayoutBase<E>
This class is a base class for HTMLLayout classes part of other logback modules such as logback-classic and logback-access.
| Field Summary | |
|---|---|
protected long |
counter
|
protected CssBuilder |
cssBuilder
|
protected Converter<E> |
head
|
protected String |
pattern
|
protected String |
title
|
| Fields inherited from class ch.qos.logback.core.LayoutBase |
|---|
started |
| Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase |
|---|
context |
| Constructor Summary | |
|---|---|
HTMLLayoutBase()
|
|
| Method Summary | |
|---|---|
protected String |
computeConverterName(Converter c)
|
String |
getContentType()
Returns the content type output by this layout, i.e "text/html". |
CssBuilder |
getCssBuilder()
|
protected abstract Map<String,String> |
getDefaultConverterMap()
|
Map<String,String> |
getEffectiveConverterMap()
Returns a map where the default converter map is merged with the map contained in the context. |
String |
getFileFooter()
Returns the appropriate HTML footers. |
String |
getFileHeader()
Returns appropriate HTML headers. |
String |
getPattern()
Returns the value of the ConversionPattern option. |
String |
getPresentationFooter()
Return the footer of the logging event formatting. |
String |
getPresentationHeader()
Return the header of the logging event formatting. |
String |
getTitle()
Returns the current value of the Title option. |
void |
setCssBuilder(CssBuilder cssBuilder)
|
void |
setPattern(String conversionPattern)
Set the ConversionPattern option. |
void |
setTitle(String title)
The Title option takes a String value. |
void |
start()
Parses the pattern and creates the Converter linked list. |
protected void |
startNewTableIfLimitReached(StringBuilder sbuf)
|
| Methods inherited from class ch.qos.logback.core.LayoutBase |
|---|
getContext, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stop |
| Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase |
|---|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ch.qos.logback.core.Layout |
|---|
doLayout |
| Methods inherited from interface ch.qos.logback.core.spi.ContextAware |
|---|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn |
| Field Detail |
|---|
protected String pattern
protected Converter<E> head
protected String title
protected CssBuilder cssBuilder
protected long counter
| Constructor Detail |
|---|
public HTMLLayoutBase()
| Method Detail |
|---|
public void setPattern(String conversionPattern)
public String getPattern()
public CssBuilder getCssBuilder()
public void setCssBuilder(CssBuilder cssBuilder)
public void start()
start in interface LifeCyclestart in class LayoutBase<E>protected abstract Map<String,String> getDefaultConverterMap()
public Map<String,String> getEffectiveConverterMap()
public void setTitle(String title)
Defaults to 'Logback Log Messages'.
public String getTitle()
public String getContentType()
getContentType in interface Layout<E>getContentType in class LayoutBase<E>public String getFileHeader()
getFileHeader in interface Layout<E>getFileHeader in class LayoutBase<E>public String getPresentationHeader()
Layout
getPresentationHeader in interface Layout<E>getPresentationHeader in class LayoutBase<E>public String getPresentationFooter()
Layout
getPresentationFooter in interface Layout<E>getPresentationFooter in class LayoutBase<E>public String getFileFooter()
getFileFooter in interface Layout<E>getFileFooter in class LayoutBase<E>protected void startNewTableIfLimitReached(StringBuilder sbuf)
protected String computeConverterName(Converter c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||