Created
July 24, 2017 19:35
-
-
Save ygaller/10300ba137d14b4e9af53b434a5e14a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SparkUtils { | |
public static void createServerWithRequestLog(Logger logger) { | |
EmbeddedJettyFactory factory = createEmbeddedJettyFactoryWithRequestLog(logger); | |
EmbeddedServers.add(EmbeddedServers.Identifiers.JETTY, factory); | |
} | |
private static EmbeddedJettyFactory createEmbeddedJettyFactoryWithRequestLog(org.apache.log4j.Logger logger) { | |
AbstractNCSARequestLog requestLog = new RequestLogFactory(logger).create(); | |
return new EmbeddedJettyFactoryConstructor(requestLog).create(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment