Class ExternalRequestLogFactory

java.lang.Object
io.dropwizard.request.logging.ExternalRequestLogFactory
All Implemented Interfaces:
Discoverable, RequestLogFactory<org.eclipse.jetty.server.RequestLog>

public class ExternalRequestLogFactory extends Object implements RequestLogFactory<org.eclipse.jetty.server.RequestLog>
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 Details

    • ExternalRequestLogFactory

      public ExternalRequestLogFactory()
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface RequestLogFactory<org.eclipse.jetty.server.RequestLog>
    • build

      public org.eclipse.jetty.server.RequestLog build(String name)
      Specified by:
      build in interface RequestLogFactory<org.eclipse.jetty.server.RequestLog>