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>
AnAppenderFactory
implementation which provides an appender that writes events to the console. Configuration Parameters:Name Default Description type
REQUIRED The appender type. Must be console
.threshold
ALL
The lowest level of events to print to the console. timeZone
UTC
The time zone to which event timestamps will be converted. target
stdout
The name of the standard stream to which events will be written. Can be stdout
orstderr
.logFormat
the 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 class
ConsoleAppenderFactory.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.ConsoleStream
getTarget()
void
setTarget(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:
appender
in classAbstractOutputStreamAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
-
-