Package io.dropwizard.request.logging
Class ExternalRequestLogFactory
- java.lang.Object
-
- io.dropwizard.request.logging.ExternalRequestLogFactory
-
- All Implemented Interfaces:
io.dropwizard.jackson.Discoverable
,RequestLogFactory
public class ExternalRequestLogFactory extends Object implements RequestLogFactory
A request log factory which writes request logs via Slf4j and doesn't configure any logging infrastructure. Useful when the user doesn't want to configure request logging via the Dropwizard configuration.
-
-
Constructor Summary
Constructors Constructor Description ExternalRequestLogFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jetty.server.RequestLog
build(String name)
boolean
isEnabled()
void
setEnabled(boolean enabled)
-
-
-
Method Detail
-
setEnabled
public void setEnabled(boolean enabled)
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interfaceRequestLogFactory
-
build
public org.eclipse.jetty.server.RequestLog build(String name)
- Specified by:
build
in interfaceRequestLogFactory
-
-