logging-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Smith <psm...@aconex.com>
Subject Re: Is Log4J Dead on the Java Platform?
Date Wed, 18 May 2005 22:30:22 GMT

On 19/05/2005, at 6:37 AM, Harry Hartley wrote:

> This may be another documentation issue, or a lack of understanding  
> on my
> part, but from my reading the SocketAppender does not support  
> layouts. From
> the javadoc for socketappender. " SocketAppenders do not use a  
> layout."
> So if I want to send the same log events to a file and to chainsaw  
> in an XML
> format using XMLLayout, how does one do this? Again my  
> understanding is that
> SocketAppenders do not support layouts.
> What am I missing?

First question, why _do_ you want to send the event to Chainsaw in  
XML layout?  Why not use 2 Appenders?  A File Appender with  
XMLLayout, and a SocketAppender.  They can both be attached to the  
same logger, and act independently.



View raw message