Hi Takasho,
The Component is globally managing the access logging. You can attach your
application to a component.
If you use the ServerServlet adapter to integrate with Jetty, you'll have to
create a subclass and override the "createComponent()" method. In this
method you can do:
Component result = super.createComponent();
result.getLogService().setEnabled(false);
If you use the standalone Jetty connector, you already have a Component
instance created that you should easily modify.
If this doesn't help you, I guess we don't understand your use case. Could
you explain it in more details?
Best regards,
Jerome
2007/12/19, Takasho <[EMAIL PROTECTED]>:
>
> Hi All,
>
> Thanks for the quick responses but still no luck. Perhaps it is
> my lack of understanding of how an application should be built
> with the restlet framework.
>
> I have an extension of org.restlet.Application in which I override
> the createRoot() method to attach a number of org.restlet.Restlet
> extensions. Each of these have a handle(Request request, Response
> response)
> method where if handle the GET/PUT and POST methods.
>
> I should be able to turn off the logging in the extension of
> org.restlet.Application and not in each of the extensions to Restlet
> within the handle(Request request, Response response) method.
>
> Your suggestions show that I should be using org.restlet.Component
> and extending that but that would just change my restlets to components
> and again is too far down the execution of the request.
>
> Is there any global logger access or control from the top of the
> hierarchy.
>
> Thanks,
>
> Takasho
>
>