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>
An
AppenderFactory
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 or stderr .
|
logFormat |
the default format | The Logback pattern with which events will be formatted. See the Logback documentation for details. |
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class io.dropwizard.logging.common.AbstractAppenderFactory
layout, logFormat, threshold, timeZone
-
Constructor Summary
Constructors -
Method Summary
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
-
Constructor Details
-
ConsoleAppenderFactory
public ConsoleAppenderFactory()
-
-
Method Details
-
getTarget
-
setTarget
-
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>
-