Package io.dropwizard.logging.common
Class DropwizardLayout
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.LayoutBase<E>
ch.qos.logback.core.pattern.PatternLayoutBase<ch.qos.logback.classic.spi.ILoggingEvent>
ch.qos.logback.classic.PatternLayout
io.dropwizard.logging.common.DropwizardLayout
- All Implemented Interfaces:
ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent>,ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.LifeCycle
public class DropwizardLayout
extends ch.qos.logback.classic.PatternLayout
A base layout for Dropwizard.
- Disables pattern headers.
- Prefixes logged exceptions with
!. - Sets the pattern to the given timezone.
-
Field Summary
Fields inherited from class ch.qos.logback.classic.PatternLayout
CONVERTER_CLASS_TO_KEY_MAP, DEFAULT_CONVERTER_MAP, DEFAULT_CONVERTER_SUPPLIER_MAP, defaultConverterMap, HEADER_PREFIXFields inherited from class ch.qos.logback.core.pattern.PatternLayoutBase
outputPatternAsHeader, postCompileProcessorFields inherited from class ch.qos.logback.core.LayoutBase
startedFields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
ConstructorsConstructorDescriptionDropwizardLayout(ch.qos.logback.classic.LoggerContext context, TimeZone timeZone) -
Method Summary
Methods inherited from class ch.qos.logback.classic.PatternLayout
doLayout, getDefaultConverterMap, getDefaultConverterSupplierMap, getPresentationHeaderPrefixMethods inherited from class ch.qos.logback.core.pattern.PatternLayoutBase
getEffectiveConverterMap, getInstanceConverterMap, getPattern, getPresentationHeader, isOutputPatternAsHeader, setContextForConverters, setOutputPatternAsHeader, setPattern, setPostCompileProcessor, start, toString, writeLoopOnConvertersMethods inherited from class ch.qos.logback.core.LayoutBase
getContentType, getContext, getFileFooter, getFileHeader, getPresentationFooter, isStarted, setContext, setFileFooter, setFileHeader, setPresentationFooter, setPresentationHeader, stopMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getDeclaredOrigin, getStatusManagerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn
-
Constructor Details
-
DropwizardLayout
-