public interface AppenderFactory<E extends ch.qos.logback.core.spi.DeferredProcessingAware> extends Discoverable
Appender instances.
To create your own, just:
AppenderFactory.@JsonTypeName and give it a unique type name.META-INF/services/io.dropwizard.logging.AppenderFactory file with your
implementation's full class name to the class path.| Modifier and Type | Method and Description |
|---|---|
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.
|
ch.qos.logback.core.Appender<E> build(ch.qos.logback.classic.LoggerContext context, String applicationName, LayoutFactory<E> layoutFactory, LevelFilterFactory<E> levelFilterFactory, AsyncAppenderFactory<E> asyncAppenderFactory)
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 appenderAppenderCopyright © 2020. All rights reserved.