cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <>
Subject Re: How to log/trace functional information ??
Date Thu, 21 Feb 2008 17:32:49 GMT
Andy Stevens pisze:
> On 14/02/2008, S├ębastien Geindre <> wrote:
>>  A client send xml data.
>>  I need to put it in kind of database.
>>  This is ok.
>>  But i would like to write in a file (for example) that client A send
>>  this datas, this day,...
>>  All information i need to trace are in  the xml data sent.
>>  A kind of monitoring, or functional trace.
>>  How can i do that with C2.2 ?
> Are you passing the user's document through a sitemap pipeline?  If
> so, you could include a custom transformer that passes everything
> through unchanged, but watches for the values you're interested in and
> records them.  Then in the endDocument callback, write them to the log
> file.  Don't see any reason why 2.2 would be any different from 2.1
> with this approach, asides from component lifecycle code.

There is already a transformer that can dump whole content of XML that is going through. It's

Grzegorz Kossakowski

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message