ch.qos.logback.classic
Class PatternLayout

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<ILoggingEvent>
              extended by ch.qos.logback.classic.PatternLayout
All Implemented Interfaces:
Layout<ILoggingEvent>, ContextAware, LifeCycle

public class PatternLayout
extends PatternLayoutBase<ILoggingEvent>

A flexible layout configurable with pattern string. The goal of this class is to format a ILoggingEvent and return the results in a {#link String}. The format of the result depends on the conversion pattern.

For more information about this layout, please refer to the online manual at http://logback.qos.ch/manual/layouts.html#PatternLayout


Field Summary
static Map<String,String> defaultConverterMap
           
 
Fields inherited from class ch.qos.logback.core.pattern.PatternLayoutBase
postCompileProcessor
 
Fields inherited from class ch.qos.logback.core.LayoutBase
started
 
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
 
Constructor Summary
PatternLayout()
           
 
Method Summary
 String doLayout(ILoggingEvent event)
           
 Map<String,String> getDefaultConverterMap()
           
 
Methods inherited from class ch.qos.logback.core.pattern.PatternLayoutBase
getEffectiveConverterMap, getInstanceConverterMap, getPattern, setContextForConverters, setPattern, setPostCompileProcessor, start, toString, writeLoopOnConverters
 
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, getDeclaredOrigin, 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.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn
 

Field Detail

defaultConverterMap

public static final Map<String,String> defaultConverterMap
Constructor Detail

PatternLayout

public PatternLayout()
Method Detail

getDefaultConverterMap

public Map<String,String> getDefaultConverterMap()
Specified by:
getDefaultConverterMap in class PatternLayoutBase<ILoggingEvent>

doLayout

public String doLayout(ILoggingEvent event)


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