Hey Romain, Thanks for the response. I want to get it setup in my openejb.json config.
It seems as though all I need is the following system property: cxf.jaxrs.features = org.apache.cxf.feature.LoggingFeature This works in tests and the request is logged in the output (run a mvn test and see for yourself) However, when running the server (sh apache-openejb-4.6.0-SNAPSHOT/bin/openejb start) it doesn't output the request in the log. I've added that property to the openejb.json system-properties section. If you have a mo, you mind seeing what I'm doing wrong? Checkout here: git clone https://github.com/ChrisChristo/rest-logging.git Chris, @ChriChristo7 { https://twitter.com/ChrisChristo7 } { http://ChrisChristo7.tumblr.com } LinkedIn { https://linkedin.com/in/ChrisChristo } Angel { https://angel.co/chris-christo } GitHub { https://github.com/ChrisChristo } On 1 Jul 2013, at 14:44, Romain Manni-Bucau <[email protected]> wrote: > Hi > > you can put it in openejb-jar.xml. You'll find samples with > cxf.jaxrs.providers key, cxf.jaxrs.features exists too IIRC. It works the > same way excepted you define features instead of providers. > > *Romain Manni-Bucau* > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > *Github: https://github.com/rmannibucau* > > > > 2013/7/1 Chris.Christo <[email protected]> > >> Trying to configure OpenEJB standalone to log all rest requests. >> >> How do I go about doing this? >> >> I saw this on the Apache CXF website: >> >> <beans xmlns:cxf="http://cxf.apache.org/core" >> xsi:schemaLocation="http://cxf.apache.org/core >> http://cxf.apache.org/schemas/core.xsd"> >> <jaxrs:server> >> <jaxrs:features> >> <cxf:logging/> >> </jaxrs:features> >> <jaxrs:server> >> </beans> >> >> But not sure where to put it. >> >> Chris, >> >> @ChriChristo7 >> { https://twitter.com/ChrisChristo7 } >> { http://ChrisChristo7.tumblr.com } >> >> LinkedIn { https://linkedin.com/in/ChrisChristo } >> Angel { https://angel.co/chris-christo } >> GitHub { https://github.com/ChrisChristo } >> >>
