Hi Aaron,

This is possible by leveraging the engine filter used by the LogService:
http://www.restlet.org/documentation/snapshot/jse/engine/org/restlet/engine/
log/LogFilter.html

This filter should be put right before your special resource using the
routing API. You should then turn off the component's log service to prevent
double processing. 

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com



-----Message d'origine-----
De : [email protected] [mailto:[email protected]] 
Envoyé : mercredi 16 septembre 2009 00:04
À : [email protected]
Objet : Turn off access logging for a specific resource?

Hi Restlet Community,

I'd like to surgically squelch access logging for just one of my Resources.

I've figured out how to do this via external logging configuration, but it's
a little ugly. It filters by parsing the already-formatted access log
message and matching on the path. I'm able to apply the filter only to the
"org.restlet.Component.LogService" logger, but I'd still like a cleaner
solution that targets just the specific Resource.

Does the Restlet framework provide a clean programmatic way to do this?


Many thanks for any hints!
Aaron

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=23952
69

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2401966

Reply via email to