Class LogbackClassicRequestLogFactory
java.lang.Object
io.dropwizard.request.logging.old.LogbackClassicRequestLogFactory
- All Implemented Interfaces:
io.dropwizard.jackson.Discoverable,RequestLogFactory<org.eclipse.jetty.server.RequestLog>
public class LogbackClassicRequestLogFactory
extends Object
implements RequestLogFactory<org.eclipse.jetty.server.RequestLog>
A factory for creating
RequestLog instances using logback-classic.
Configuration Parameters:
| Name | Default | Description |
timeZone |
UTC | The time zone to which request timestamps will be converted. |
appenders |
a default console appender |
The set of appenders to which requests will be logged.
|
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.server.RequestLogList<io.dropwizard.logging.common.AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>>booleanvoidsetAppenders(List<io.dropwizard.logging.common.AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>> appenders) voidsetTimeZone(TimeZone timeZone)
-
Constructor Details
-
LogbackClassicRequestLogFactory
public LogbackClassicRequestLogFactory()
-
-
Method Details
-
getAppenders
public List<io.dropwizard.logging.common.AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>> getAppenders() -
setAppenders
public void setAppenders(List<io.dropwizard.logging.common.AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>> appenders) -
getTimeZone
-
setTimeZone
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceRequestLogFactory<org.eclipse.jetty.server.RequestLog>
-
build
- Specified by:
buildin interfaceRequestLogFactory<org.eclipse.jetty.server.RequestLog>
-