package io.dropwizard.request.logging;

import ch.qos.logback.access.jetty.RequestLogImpl;

/**
 * The Dropwizard request log uses logback-access, but we override it to remove the requirement for logback-access.xml
 * based configuration.
 */
public class LogbackAccessRequestLog extends RequestLogImpl {
    @Override
    public void configure() {
        setName("LogbackAccessRequestLog");
    }
}

package io.dropwizard.request.logging;

import ch.qos.logback.access.jetty.RequestLogImpl;
import org.eclipse.jetty.util.component.LifeCycle;

/**
 * The Dropwizard request log uses logback-access, but we override it to remove the requirement for logback-access.xml
 * based configuration.
 */
public class LogbackAccessRequestLog extends RequestLogImpl implements LifeCycle {
    @Override
    public void configure() {
        setName("LogbackAccessRequestLog");
    }
}

Implement Jetty LifeCycle in LogbackAccessRequestLog (#5115)