All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.factoryfx.jetty.Slf4jRequestLogFactory Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
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;
        });
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy