logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michaël CATANZARITI <mca...@apache.org>
Subject Re: Using XMLSocketAppender 'locationinfo' option.
Date Mon, 28 Jun 2004 21:37:26 GMT
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:
	log4cxx-user-subscribe@logging.apache.org

	log4cxx developer mailing list:
	mailto:log4cxx-dev-subscribe@logging.apache.org

Mime
View raw message