Hi,
I am afraid there is a bug in the XMLSocketAppender
Please try to apply the following patch to the file xmlsocketappender.cpp :
diff -r1.7 xmlsocketappender.cpp 93a94,95
XMLLayoutPtr xmlLayout = layout;
xmlLayout->setLocationInfo(locationInfo);
and let me know if it works.
Christophe de VIENNE wrote:
Hi,
My log properties file looks like this :
log4j.appender.luciole=org.apache.log4j.XMLSocketAppender log4j.appender.luciole.remotehost=192.168.1.122 log4j.appender.luciole.port=4560 log4j.appender.luciole.locationinfo=true
The logs are correctly send to my chainsaw2 instance, and I can see all my logs. BUT, I cannot get the location informations (file & line) in chainsaw.
Is my last line supposed to work ?
A look at xmlsocketappender.cpp and optionconverter.cpp made me think it should work but... nope.
If not how to specify that I want the location informations sent ?
Is it possible that the problem comes from chainsaw ?
Thanks,
Christophe
-- MichaÃl CATANZARITI log4cxx project manager
log4cxx user mailing list:
[EMAIL PROTECTED] log4cxx developer mailing list:
mailto:[EMAIL PROTECTED]
