Andy Stevens pisze: > On 14/02/2008, Sébastien Geindre <[EMAIL PROTECTED]> 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 called TeeTransformer. -- Grzegorz Kossakowski --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]