I'm using a embedded jetty in my application and I have configured a war deployed folder as follow.
// === jetty-deploy.xml ===
DeploymentManager deployer = new DeploymentManager();
deployer.setContexts(contexts);
deployer.setContextAttribute(
"org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern",
".*/servlet-api-[^/]*\\.jar$");
WebAppProvider webapp_provider = new WebAppProvider();
webapp_provider.setMonitoredDirName("jetty_base/webapps");
//webapp_provider.setDefaultsDescriptor("jetty_base/webapps/webdefault.xml");
webapp_provider.setScanInterval(1);
webapp_provider.setExtractWars(true);
webapp_provider.setConfigurationManager(new PropertiesConfigurationManager());
deployer.addAppProvider(webapp_provider);
server.addBean(deployer);
org.eclipse.jetty.util.log.Log.setLog(new org.eclipse.jetty.util.log.StdErrLog());
//Log.setLog(new Slf4jLog());
When I deploy my war file using standard jetty distribution (jetty-distribution-9.3.6.v20151106) I can get logs in my *.stderrout.log files.
But problem I face is I can't get logs when I use my above embedded jetty. I tried both StdErrLog and Slf4jLog for Log.setLog
In my war file there are logs with logback. Following line is extracted from log file of standard distribution
INFO in ch.qos.logback.classic.LoggerContext[default]