You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by ja...@external.t-mobile.at on 2008/12/10 18:27:32 UTC
xml messages pretty print into log file? [Virus checked]
Hello,
is it possible to pretty print xml requests/responses which are written to
the log file?
thanks
best regards
jano
Antwort: Re: xml messages pretty print into log file? [Virus checked]
Posted by ja...@external.t-mobile.at.
Thanks,
because i need it only for regression testing framework, i did in in the
easiest possible way: i changes toString() method of LoggingMessage class
best regards
jano
Daniel Kulp <dk...@apache.org>
12/10/2008 20:26
Bitte antworten an
users@cxf.apache.org
An
users@cxf.apache.org
Kopie
jan.minaroviech@external.t-mobile.at
Thema
Re: xml messages pretty print into log file? [Virus checked]
On Wednesday 10 December 2008 12:27:32 pm
jan.minaroviech@external.t-mobile.at
wrote:
> Hello,
>
> is it possible to pretty print xml requests/responses which are written
to
> the log file?
The current Log interceptors operate at the stream level where they can be
protocol and format independent. For example, attachments can get
logged,
if the format is JSON instead of XML, fastinfoset buffers, etc.... They
just know raw bytes.
It would probably be good to create XMLLogging interceptors that would run
after the StaxIn/OutInterceptor that could do what you describe. By
operating post StaxIn/Out, things like json/fastinfoset could also be
logged
as XML.
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Re: xml messages pretty print into log file? [Virus checked]
Posted by Daniel Kulp <dk...@apache.org>.
On Wednesday 10 December 2008 12:27:32 pm jan.minaroviech@external.t-mobile.at
wrote:
> Hello,
>
> is it possible to pretty print xml requests/responses which are written to
> the log file?
The current Log interceptors operate at the stream level where they can be
protocol and format independent. For example, attachments can get logged,
if the format is JSON instead of XML, fastinfoset buffers, etc.... They
just know raw bytes.
It would probably be good to create XMLLogging interceptors that would run
after the StaxIn/OutInterceptor that could do what you describe. By
operating post StaxIn/Out, things like json/fastinfoset could also be logged
as XML.
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog