Top Fields Constructors Methods
ch.qos.logback.core.pattern

public abstract Class PatternLayoutBase<E>

extends LayoutBase<E>
Class Inheritance
Imports
java.util.HashMap, .Map, ch.qos.logback.core.Context, .CoreConstants, .LayoutBase, ch.qos.logback.core.pattern.parser.Node, .Parser, ch.qos.logback.core.spi.ScanException, ch.qos.logback.core.status.ErrorStatus, .StatusManager

Field Summary

Modifier and TypeField and Description
pack-priv Converter<E>
pack-priv Map<String, String>
pack-priv static final int
protected boolean
pack-priv String
protected PostCompileProcessor<E>
Inherited from ch.qos.logback.core.LayoutBase:
started

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract Map<String, String>

Returns:

A map associating pattern words to the names of converter classes
getDefaultConverterMap
()

Concrete implementations of this class are responsible for elaborating the mapping between pattern words and converters.

public Map<String, String>
getEffectiveConverterMap()

Returns a map where the default converter map is merged with the map contained in the context.

public Map<String, String>
public String
public String
protected String
public boolean
protected void
public void
setOutputPatternAsHeader(boolean outputPatternAsHeader)

public void
setPattern(String pattern)

public void
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
protected String
Inherited from ch.qos.logback.core.LayoutBase:
getContentTypegetContextgetFileFootergetFileHeadergetPresentationFooterisStartedsetContextsetFileFootersetFileHeadersetPresentationFootersetPresentationHeaderstop

Field Detail

instanceConverterMapback to summary
pack-priv Map<String, String> instanceConverterMap
INTIAL_STRING_BUILDER_SIZEback to summary
pack-priv static final int INTIAL_STRING_BUILDER_SIZE
outputPatternAsHeaderback to summary
protected boolean outputPatternAsHeader
patternback to summary
pack-priv String pattern
postCompileProcessorback to summary
protected PostCompileProcessor<E> postCompileProcessor

Constructor Detail

PatternLayoutBaseback to summary
public PatternLayoutBase()

Method Detail

getDefaultConverterMapback to summary
public abstract Map<String, String> getDefaultConverterMap()

Concrete implementations of this class are responsible for elaborating the mapping between pattern words and converters.

Returns:Map<String, String>

A map associating pattern words to the names of converter classes

getEffectiveConverterMapback to summary
public Map<String, String> getEffectiveConverterMap()

Returns a map where the default converter map is merged with the map contained in the context.

getInstanceConverterMapback to summary
public Map<String, String> getInstanceConverterMap()
getPatternback to summary
public String getPattern()
getPresentationHeaderback to summary
public String getPresentationHeader()

Overrides ch.qos.logback.core.LayoutBase.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.

Annotations
@Override
getPresentationHeaderPrefixback to summary
protected String getPresentationHeaderPrefix()
isOutputPatternAsHeaderback to summary
public boolean isOutputPatternAsHeader()
setContextForConvertersback to summary
protected void setContextForConverters(Converter<E> head)

Deprecated

Use ConverterUtil#setContextForConverters instead. This method will be removed in future releases.

setOutputPatternAsHeaderback to summary
public void setOutputPatternAsHeader(boolean outputPatternAsHeader)
setPatternback to summary
public void setPattern(String pattern)
setPostCompileProcessorback to summary
public void setPostCompileProcessor(PostCompileProcessor<E> postCompileProcessor)
startback to summary
public void start()

Overrides ch.qos.logback.core.LayoutBase.start.

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

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

writeLoopOnConvertersback to summary
protected String writeLoopOnConverters(E event)