I want to log all soap requests to my server. The server instance is an embedded jetty server.
Is there a way to setup a handler to do this. I have access to the web.xml file
I want to log all soap requests to my server. The server instance is an embedded jetty server.
Is there a way to setup a handler to do this. I have access to the web.xml file
You'll want the following on your embedded jetty startup...
(This is assuming Jetty 9)
jetty maven:
Code:
NCSARequestLog is sync log, if you want to use log4j, do it like that:
use
AccessLogHandler
to replace theNCSARequestLog
and config yourlog4j.properties
.