Logback API
Version 0.9.8

ch.qos.logback.core.pattern
Class PatternLayoutBase<E>

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.LayoutBase<E>
          extended by ch.qos.logback.core.pattern.PatternLayoutBase<E>
All Implemented Interfaces:
Layout<E>, ContextAware, LifeCycle
Direct Known Subclasses:
PatternLayout, PatternLayout

public abstract class PatternLayoutBase<E>
extends LayoutBase<E>


Field Summary
 
Fields inherited from class ch.qos.logback.core.LayoutBase
started
 
Fields inherited from interface ch.qos.logback.core.Layout
LINE_SEP, LINE_SEP_LEN
 
Constructor Summary
PatternLayoutBase()
           
 
Method Summary
protected  Converter<E> findTail(Converter<E> head)
           
abstract  Map<String,String> getDefaultConverterMap()
          Concrete implementations of this class are responsible for elaborating the mapping between pattern words and converters.
 Map<String,String> getEffectiveConverterMap()
          Returns a map where the default converter map is merged with the map contained in the context.
 Map<String,String> getInstanceConverterMap()
           
 String getPattern()
           
protected  void postCompileProcessing(Converter<E> head)
          Let derived classes perform postCompile processing.
protected  void setContextForConverters(Converter<E> head)
           
 void setPattern(String pattern)
           
 void start()
           
 String toString()
           
protected  String writeLoopOnConverters(E event)
           
 
Methods inherited from class ch.qos.logback.core.LayoutBase
getContentType, getContext, getFileFooter, getFileHeader, getPresentationFooter, getPresentationHeader, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stop
 
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getStatusManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
 

Constructor Detail

PatternLayoutBase

public PatternLayoutBase()
Method Detail

getDefaultConverterMap

public abstract Map<String,String> getDefaultConverterMap()
Concrete implementations of this class are responsible for elaborating the mapping between pattern words and converters.

Returns:
A map associating pattern words to the names of converter classes

getEffectiveConverterMap

public Map<String,String> getEffectiveConverterMap()
Returns a map where the default converter map is merged with the map contained in the context.


start

public void start()
Specified by:
start in interface LifeCycle
Overrides:
start in class LayoutBase<E>

postCompileProcessing

protected void postCompileProcessing(Converter<E> head)
Let derived classes perform postCompile processing. However, PatternLayout found in the classic module needs to add a converter for exception handling if there isn't one already.

Parameters:
head -

setContextForConverters

protected void setContextForConverters(Converter<E> head)

writeLoopOnConverters

protected String writeLoopOnConverters(E event)

getPattern

public String getPattern()

setPattern

public void setPattern(String pattern)

toString

public String toString()
Overrides:
toString in class Object

findTail

protected Converter<E> findTail(Converter<E> head)

getInstanceConverterMap

public Map<String,String> getInstanceConverterMap()

Logback API
Version 0.9.8

Copyright © 2005-2008 QOS.ch. All Rights Reserved.