io.dropwizard.request.logging.layout.LogbackAccessRequestLayoutFactory Maven / Gradle / Ivy
package io.dropwizard.request.logging.layout;
import ch.qos.logback.access.spi.IAccessEvent;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.core.pattern.PatternLayoutBase;
import io.dropwizard.logging.layout.LayoutFactory;
import java.util.TimeZone;
/**
* Factory that creates a {@link LogbackAccessRequestLayout}
*/
public class LogbackAccessRequestLayoutFactory implements LayoutFactory {
@Override
public PatternLayoutBase build(LoggerContext context, TimeZone timeZone) {
return new LogbackAccessRequestLayout(context, timeZone);
}
}