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:
io.dropwizard.jackson.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 of
AppenderFactory producing an appender based on OutputStreamAppender.-
Field Summary
Fields inherited from class io.dropwizard.logging.common.AbstractAppenderFactory
layout, logFormat, threshold, timeZone -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Constructor Details
-
AbstractOutputStreamAppenderFactory
public AbstractOutputStreamAppenderFactory()
-
-
Method Details
-
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:AppenderFactoryGiven 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
-