You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by ra...@jpmchase.com on 2005/09/08 20:10:29 UTC

using log4j in simple java client programs

Sorry .. I forgot to type a subject in my earlier mail/..


I am new to log4j.. 

I have a web project  in which I have log4j.properties  under 
WEB-INF/classes folder and I do configure log4j during application start 
up using one of my servlet.

as shown below

 PropertyConfigurator.configure(log4j.properties);

As for as I invoke any java program from any of my servlets ..I am doing 
fine.   I also have a web service in the same project which will be 
invoked by remote clients..  I have used axis to create my web service.. 
when  the clients use the stub created by axis ..  I see the log4j is 
getting configured every single time..meaning I see the log4j.properties 
file read again and again I don't want that to happen .. 

My development environment is WSAD 5.1

Please shed some light .

Your help is highly appreciated!

Raj