Package io.dropwizard.logging.common
Class ConsoleAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
- java.lang.Object
-
- io.dropwizard.logging.common.AbstractAppenderFactory<E>
-
- io.dropwizard.logging.common.AbstractOutputStreamAppenderFactory<E>
-
- io.dropwizard.logging.common.ConsoleAppenderFactory<E>
-
- All Implemented Interfaces:
Discoverable,AppenderFactory<E>
public class ConsoleAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware> extends AbstractOutputStreamAppenderFactory<E>
AnAppenderFactoryimplementation which provides an appender that writes events to the console. Configuration Parameters:Name Default Description typeREQUIRED The appender type. Must be console.thresholdALLThe lowest level of events to print to the console. timeZoneUTCThe time zone to which event timestamps will be converted. targetstdoutThe name of the standard stream to which events will be written. Can be stdoutorstderr.logFormatthe default format The Logback pattern with which events will be formatted. See the Logback documentation for details. - See Also:
AbstractAppenderFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConsoleAppenderFactory.ConsoleStream
-
Field Summary
-
Fields inherited from class io.dropwizard.logging.common.AbstractAppenderFactory
layout, logFormat, threshold, timeZone
-
-
Constructor Summary
Constructors Constructor Description ConsoleAppenderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ch.qos.logback.core.OutputStreamAppender<E>appender(ch.qos.logback.classic.LoggerContext context)ConsoleAppenderFactory.ConsoleStreamgetTarget()voidsetTarget(ConsoleAppenderFactory.ConsoleStream target)-
Methods inherited from class io.dropwizard.logging.common.AbstractOutputStreamAppenderFactory
build
-
Methods inherited from class io.dropwizard.logging.common.AbstractAppenderFactory
buildLayout, getDiscardingThreshold, getFilterFactories, getLayout, getLogFormat, getMessageRate, getQueueSize, getThreshold, getTimeZone, isIncludeCallerData, setDiscardingThreshold, setFilterFactories, setIncludeCallerData, setLayout, setLogFormat, setMessageRate, setNeverBlock, setQueueSize, setThreshold, setTimeZone, setTimeZone, wrapAsync, wrapAsync
-
-
-
-
Method Detail
-
getTarget
public ConsoleAppenderFactory.ConsoleStream getTarget()
-
setTarget
public void setTarget(ConsoleAppenderFactory.ConsoleStream target)
-
appender
protected ch.qos.logback.core.OutputStreamAppender<E> appender(ch.qos.logback.classic.LoggerContext context)
- Specified by:
appenderin classAbstractOutputStreamAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
-
-