ch.qos.logback.classic
Class PatternLayout
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.LayoutBase<E>
ch.qos.logback.core.pattern.PatternLayoutBase<ILoggingEvent>
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
Methods inherited from class ch.qos.logback.core.LayoutBase |
getContentType, getContext, getFileFooter, getFileHeader, getPresentationFooter, getPresentationHeader, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stop |
defaultConverterMap
public static final Map<String,String> defaultConverterMap
PatternLayout
public PatternLayout()
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.