You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Thorbjørn Ravn Andersen <no...@gmail.com> on 2010/07/08 21:09:49 UTC

Re: DO NOT REPLY [Bug 49354] New: XMLLayout writes illegal characters to XML file

Den 28/05/10 16.34, bugzilla@apache.org skrev:
> XMLLayout should ensure that what it write is legal XML, either by escaping
> illegal characters, removing them, or replacing them.
>    
Until that happens the best you can do, is subclass XMLLayout to do the 
processing you need (removing invalid unicode characters, etc).  It is 
not hard.

I've done the same with the similar class in logback.

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


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