io.github.factoryfx.jetty.Slf4jRequestLogFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jettyFactory Show documentation
Show all versions of jettyFactory Show documentation
factoryfx dependency injection framework
package io.github.factoryfx.jetty;
import org.eclipse.jetty.server.CustomRequestLog;
import org.eclipse.jetty.server.RequestLog;
import io.github.factoryfx.factory.FactoryBase;
public class Slf4jRequestLogFactory> extends FactoryBase {
public Slf4jRequestLogFactory() {
configLifeCycle().setCreator(() -> {
CustomRequestLog requestLog = new CustomRequestLog();
// requestLog.setExtended(false);
// requestLog.setLogTimeZone("GMT");
// requestLog.setLogDateFormat("");
// requestLog.setLogLatency(true);
return requestLog;
});
}
}