You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Minh Tran <da...@gmail.com> on 2015/02/13 01:01:16 UTC
RestDSL jetty access logs
Hi
I'm using the RestDSL in 2.14.1 and I want to enable access logs while using jetty.
I've configured the rest to point to jetty like this
<restConfiguration component="jetty" port="8080" host="0.0.0.0"></restConfiguration>
I would like to use Logback's TeeFilter servlet filter to do actual logging for me but I cannot seem to find out a way to register the filter against the JettyHttpComponent. The setFilters method on it is private. It seems to be only accessible when used in the uri like <bean uri="jetty:blah?filtersRef"/> There's no place to do this while using the RestDSL?
Does anyone have any suggestions? Thanks.
Re: RestDSL jetty access logs
Posted by Willem Jiang <wi...@gmail.com>.
Hi,
You can setup the endpoint property inside of the restConfiguration
<restConfiguration component="jetty" port="8080" host="0.0.0.0">
<endpointProperty>
<restProperty key=“filters” value=“ref">
</endpointProperty>
</restConfiguration>
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On February 13, 2015 at 8:02:35 AM, Minh Tran (darth.minhster@gmail.com) wrote:
> Hi
>
> I'm using the RestDSL in 2.14.1 and I want to enable access logs while using jetty.
>
> I've configured the rest to point to jetty like this
>
>
> I would like to use Logback's TeeFilter servlet filter to do actual logging for me but
> I cannot seem to find out a way to register the filter against the JettyHttpComponent.
> The setFilters method on it is private. It seems to be only accessible when used in the
> uri like There's no place to do this while using
> the RestDSL?
>
> Does anyone have any suggestions? Thanks.