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 <[EMAIL PROTECTED]> 
12/10/2008 20:26
Bitte antworten an
[email protected]


An
[email protected]
Kopie
[EMAIL PROTECTED]
Thema
Re: xml messages pretty print into log file?  [Virus checked]






On Wednesday 10 December 2008 12:27:32 pm 
[EMAIL PROTECTED] 
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
[EMAIL PROTECTED]
http://dankulp.com/blog



Reply via email to