You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Neil Bartlett <nj...@gmail.com> on 2016/12/19 17:41:38 UTC

Felix HTTP Jetty: enabling request logging

Hi,

I’m trying to figure out how to enable access/request logging in the Felix HTTP Jetty implementation. I’m looking at org.apache.felix.http.jetty version, which (according to its manifest) embeds Jetty version 9.3.12.v20160915.

The base Jetty documentation (https://www.eclipse.org/jetty/documentation/current/configuring-jetty-request-logs.html <https://www.eclipse.org/jetty/documentation/current/configuring-jetty-request-logs.html>) talks about creating an instance of NCSARequestLog and providing it to the Server object with setRequestLog(). Unfortunately, looking at the code, it seems like there is no way to do this in the Felix wrapper around Jetty. I’m looking at SVN trunk revision 1773432. Could one of the developers confirm this assessment?

Many thanks,
Neil

Re: Felix HTTP Jetty: enabling request logging

Posted by Felix Meschberger <fm...@adobe.com>.
Hi Neil

Yes, the Jetty server is setup programmatically and is a private field to the implementation. And there is no hook to add such an NCSARequestLog instance.

Having said that, I would think the community would be open to a decent patch ;-)

Regards
Felix

> Am 19.12.2016 um 18:41 schrieb Neil Bartlett <nj...@gmail.com>:
> 
> Hi,
> 
> I’m trying to figure out how to enable access/request logging in the Felix HTTP Jetty implementation. I’m looking at org.apache.felix.http.jetty version, which (according to its manifest) embeds Jetty version 9.3.12.v20160915.
> 
> The base Jetty documentation (https://www.eclipse.org/jetty/documentation/current/configuring-jetty-request-logs.html <https://www.eclipse.org/jetty/documentation/current/configuring-jetty-request-logs.html>) talks about creating an instance of NCSARequestLog and providing it to the Server object with setRequestLog(). Unfortunately, looking at the code, it seems like there is no way to do this in the Felix wrapper around Jetty. I’m looking at SVN trunk revision 1773432. Could one of the developers confirm this assessment?
> 
> Many thanks,
> Neil