public JettyServiceImpl(@Monitor TransportMonitor monitor,
@Autowire WorkScheduler scheduler) {
this.monitor = monitor;
this.scheduler = scheduler;
// Jetty uses a static logger, so jam in the monitor into a static reference
Logger logger = Log.getLogger(null);
if (logger instanceof JettyLogger) {
JettyLogger jettyLogger = (JettyLogger) logger;
jettyLogger.setMonitor(monitor);
if (debug) {
jettyLogger.setDebugEnabled(true);