If you are using log4j1.2.x, I think the XMLLayout did not output as many
logging information elements.  This has been rectified in log4j1.3 and is
available if you use the build from CVS.
Having said that though, remember that Chainsaw will display the columns,
even if the event received does not have them.
Cheers,
Paul Smith

> -----Original Message-----
> From: Juan Jos� Garc�a Lau [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 19, 2004 3:34 AM
> To: [EMAIL PROTECTED]
> Subject: FileAppender, XMLLayout and Chainsaw question.
> 
> Hi,
> 
> I've seen when I use the org.apache.log4j.FileAppender and
> the layout=org.apache.log4j.xml.XMLLayout in my chainsaw
> I have the following information:
> 
> Level, logger, Time, Thread, Message, properties and Throwable
> 
> Then when I use the org.apache.log4j.net.SocketAppender I have all the
> Information in my Chainsaw:
> 
> Level, logger, Time, Thread, Message, NDC,
> class, Method, line, File, Properties and Throwable.
> 
> What can I do to have all the info in my XML log file?
> 
> Here is my properties file:
> 
> log4j.rootLogger=DEBUG, AppXML, CHAINSAW_CLIENT
> #para xml, AppXML log4j.appender.AppXML=org.apache.log4j.FileAppender
> log4j.appender.AppXML.file=D:/Lealtad/logs/log_lealtad.xml
> log4j.appender.AppXML.layout=org.apache.log4j.xml.XMLLayout
> log4j.appender.AppXML.append=true
> #appender para Chainsaw, CHAINSAW_CLIENT
> log4j.appender.CHAINSAW_CLIENT=org.apache.log4j.net.SocketAppender
> log4j.appender.CHAINSAW_CLIENT.RemoteHost=jgarcia
> log4j.appender.CHAINSAW_CLIENT.Port=4560
> log4j.appender.CHAINSAW_CLIENT.LocationInfo=true
> 
> 
> Thanks for the help.
> 
> Best Regards,
> 
> Juan Jos� Garc�a Lau


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to