public interface AppenderFactory 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<ch.qos.logback.classic.spi.ILoggingEvent> |
build(ch.qos.logback.classic.LoggerContext context,
String applicationName,
ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> layout)
Given a Logback context, an application name, and a layout, build a new appender.
|
ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent> build(ch.qos.logback.classic.LoggerContext context,
String applicationName,
ch.qos.logback.core.Layout<ch.qos.logback.classic.spi.ILoggingEvent> layout)
context - the Logback contextapplicationName - the application namelayout - the layout for loggingAppenderCopyright © 2015. All rights reserved.