Jetty's documentation (the org.eclipse.jetty:jetty-slf4j-implis already added to the pom.xml).
Programmatically:
System.setProperty("org.eclipse.jetty.LEVEL", "TRACE");
Or add a jetty-logging.properties:
org.eclipse.jetty.LEVEL=TRACE
org.eclipse.jetty.client.LEVEL=TRACE
You need to update the current implementation by hand.
- activate JMX
The Jetty server is created in class
JettyServerHelper.
// Create an MBeanContainer with the platform MBeanServer.
MBeanContainer mbeanContainer = new MBeanContainer(ManagementFactory.getPlatformMBeanServer());
// Add MBeanContainer to the root component.
jettyServer.addBean(mbeanContainer);
- to state tracking You can use jconsole to check the state of MBean or just run operations on them.