logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorbjørn Ravn Andersen <nospam0...@gmail.com>
Subject Re: Omit xml part
Date Tue, 02 Nov 2010 20:58:10 GMT
Den 02/11/10 10.25, Alexander Curvers skrev:
> Hello,
> i send some binary data in xml messages with my webservices.. I log 
> all communication for debugging purposes. The problem is the binary 
> value gets logged as well making the log very big.. I want to log the 
> rest of the xml but just not the one field/property containing the 
> binary data.. can i configure Log4j to just not log that line/property 
> of the xml message?

Not immediately, but you can use the XSLT implementation available in 
the Java Runtime to remove the binary value from your XML before logging it.

   Thorbjørn Ravn Andersen  "...plus... Tubular Bells!"

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message