Package io.dropwizard.logging.common
Class AbstractOutputStreamAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware>
- java.lang.Object
-
- io.dropwizard.logging.common.AbstractAppenderFactory<E>
-
- io.dropwizard.logging.common.AbstractOutputStreamAppenderFactory<E>
-
- All Implemented Interfaces:
Discoverable
,AppenderFactory<E>
- Direct Known Subclasses:
ConsoleAppenderFactory
,FileAppenderFactory
,TcpSocketAppenderFactory
,UdpSocketAppenderFactory
public abstract class AbstractOutputStreamAppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware> extends AbstractAppenderFactory<E>
A base implementation ofAppenderFactory
producing an appender based onOutputStreamAppender
.
-
-
Field Summary
-
Fields inherited from class io.dropwizard.logging.common.AbstractAppenderFactory
layout, logFormat, threshold, timeZone
-
-
Constructor Summary
Constructors Constructor Description AbstractOutputStreamAppenderFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ch.qos.logback.core.OutputStreamAppender<E>
appender(ch.qos.logback.classic.LoggerContext context)
ch.qos.logback.core.Appender<E>
build(ch.qos.logback.classic.LoggerContext context, String applicationName, LayoutFactory<E> layoutFactory, LevelFilterFactory<E> levelFilterFactory, AsyncAppenderFactory<E> asyncAppenderFactory)
Given a Logback context, an application name, a layout, a levelFilterFactory, and an asyncAppenderFactory build a new appender.-
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
-
appender
protected abstract ch.qos.logback.core.OutputStreamAppender<E> appender(ch.qos.logback.classic.LoggerContext context)
-
build
public ch.qos.logback.core.Appender<E> build(ch.qos.logback.classic.LoggerContext context, String applicationName, LayoutFactory<E> layoutFactory, LevelFilterFactory<E> levelFilterFactory, AsyncAppenderFactory<E> asyncAppenderFactory)
Description copied from interface:AppenderFactory
Given a Logback context, an application name, a layout, a levelFilterFactory, and an asyncAppenderFactory build a new appender.- Parameters:
context
- the Logback contextapplicationName
- the application namelayoutFactory
- the factory for the layout for logginglevelFilterFactory
- the factory for the level filterasyncAppenderFactory
- the factory for the async appender- Returns:
- a new, started
Appender
-
-