tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Rest payload logging
Date Mon, 12 Dec 2016 21:01:30 GMT
it is really just one line to put in conf/system.properties (or jvm system
properties) ->
https://github.com/tomitribe/tribestream-api-registry/blob/master/tribestream-api-registry-webapp/pom.xml#L365

If it doesnt work it means your CMD_LINE_ARGS is not used


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-12-12 21:51 GMT+01:00 Steve Goldsmith <sgjava@gmail.com>:

> Why not use a logger as I described before? Here's an example if logging
> client requests
> https://github.com/sgjava/jcache-tomee/blob/master/src/
> main/java/com/codeferm/jcache/tomee/ClientRequestLoggingFilter.java
>
> On Mon, Dec 12, 2016 at 3:40 PM, COURTAULT Francois <
> Francois.Courtault@gemalto.com> wrote:
>
> > Hello,
> >
> > Change the line 48 of startup.bat from
> > set CMD_LINE_ARGS=
> > to
> > set CMD_LINE_ARGS=-Dorg.apache.openejb.cxf.bus.features=org.
> > apache.cxf.feature.LoggingFeature
> >
> > And still nothing in catalina log file :-(
> >
> > Best Regards.
> >
> > -----Original Message-----
> > From: Romain Manni-Bucau [mailto:rmannibucau@gmail.com]
> > Sent: lundi 12 décembre 2016 14:13
> > To: users@tomee.apache.org
> > Subject: RE: Rest payload logging
> >
> > Le 12 déc. 2016 14:01, "COURTAULT Francois" <Francois.Courtault@gemalto.
> > com> a écrit :
> >
> > Hello Romain,
> >
> > Any idea why the solution described at: I have followed this link
> > http://tomcat.apache.org/ tomcat-7.0-doc/config/filter.
> > html#Request_Dumper_Filter
> > doesn't work for me ?
> >
> > Check to do is tomcat 8.5 doc for tomee 7.
> >
> >
> > BTW I have added in my REST service endpoint: @Features(features="org.
> > apache.cxf.feature.LoggingFeature") thanks to your advice (
> > http://cxf.apache.org/docs/features.html) but I haven't found any HTTP
> > request in all the files located at <TOMEE_HOME>/logs folder: any idea ?
> >
> >
> > It is in catalina.log normally. try putting it in dystem properties as
> > mentionned.
> >
> >
> > Best Regards.
> >
> > -----Original Message-----
> > From: Romain Manni-Bucau [mailto:rmannibucau@gmail.com]
> > Sent: lundi 12 décembre 2016 09:40
> > To: users@tomee.apache.org
> > Subject: Re: Rest payload logging
> >
> > Hi
> >
> > cxf built-in solution is to use logging feature:
> >
> > org.apache.openejb.cxf.bus.features = org.apache.cxf.feature.
> > LoggingFeature
> >
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog <
> > https://blog-rmannibucau.rhcloud.com> | Old Blog <
> > http://rmannibucau.wordpress.com> | Github <https://github.com/
> rmannibucau
> > >
> > | LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory <
> > https://javaeefactory-rmannibucau.rhcloud.com>
> >
> > 2016-12-12 9:31 GMT+01:00 COURTAULT Francois <Francois.Courtault@gemalto.
> > com
> > >:
> >
> > > Hello everyone,
> > >
> > > I would be pleased to see the REST HTTP request payload and the REST
> > > HTTP response payload.
> > >
> > > I have followed this link http://tomcat.apache.org/
> > > tomcat-7.0-doc/config/filter.html#Request_Dumper_Filter but it doesn't
> > > work.
> > > Indeed, I wasn't able to see any request-dumper.log file created :(
> > >
> > > Is this the good way to achieve this or does it exist others solutions
> ?
> > >
> > > Best Regards.
> > > ________________________________
> > > This message and any attachments are intended solely for the
> > > addressees and may contain confidential information. Any unauthorized
> > > use or disclosure, either whole or partial, is prohibited.
> > > E-mails are susceptible to alteration. Our company shall not be liable
> > > for the message if altered, changed or falsified. If you are not the
> > > intended recipient of this message, please delete it and notify the
> > sender.
> > > Although all reasonable efforts have been made to keep this
> > > transmission free from viruses, the sender will not be liable for
> > > damages caused by a transmitted virus.
> > >
> > ________________________________
> >  This message and any attachments are intended solely for the addressees
> > and may contain confidential information. Any unauthorized use or
> > disclosure, either whole or partial, is prohibited.
> > E-mails are susceptible to alteration. Our company shall not be liable
> for
> > the message if altered, changed or falsified. If you are not the intended
> > recipient of this message, please delete it and notify the sender.
> > Although all reasonable efforts have been made to keep this transmission
> > free from viruses, the sender will not be liable for damages caused by a
> > transmitted virus.
> > ________________________________
> >  This message and any attachments are intended solely for the addressees
> > and may contain confidential information. Any unauthorized use or
> > disclosure, either whole or partial, is prohibited.
> > E-mails are susceptible to alteration. Our company shall not be liable
> for
> > the message if altered, changed or falsified. If you are not the intended
> > recipient of this message, please delete it and notify the sender.
> > Although all reasonable efforts have been made to keep this transmission
> > free from viruses, the sender will not be liable for damages caused by a
> > transmitted virus.
> >
>
>
>
> --
> Steven P. Goldsmith
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message