io.dropwizard.request.logging.RequestLogFactory Maven / Gradle / Ivy
package io.dropwizard.request.logging;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.dropwizard.jackson.Discoverable;
import org.eclipse.jetty.server.RequestLog;
/**
* A service provider interface for creating a Jetty {@link RequestLog}
*
* @param type of a {@link RequestLog} implementation
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", defaultImpl = LogbackAccessRequestLogFactory.class)
public interface RequestLogFactory extends Discoverable {
boolean isEnabled();
T build(String name);
}