Re: Calls to PropertyConfigurator.configure(properties) appear to overwrite other logger instances!
Posted By:
ravi_sambandam
Posted On:
Tuesday, December 9, 2003 03:51 AM
Hi,
If u want to log the info of each servlet class to different file ie.. one log file for one class, u need to define those many loggers and its other details in your property file and invoke the particular logger in ur respective class and log the info.
ur log4j will get initialized only when u execute this line of code
PropertyConfigurator.configure(LogFile);
and not every time when u get the logger object.
u write ur code in such a way that this will get executed only once in applications life.