I missed few details in the previous mail.
public static Hashtable mht = new Hashtable()
mLogger is the class member variable.
Vin Karthik <[EMAIL PROTECTED]> wrote:
Hi,
I am facing a problem with log4j. I am running 2 seperate programs. Both the
programs use different log files 1.txt and 2.txt respectively. When these
programs(1 & 2) are run continuously, the log statements get logged in the same
log file(1.txt). The logger instantiation piece of code is as follows :
public static Logger getLogInstance(String pScriptName)
{
if(mht.get(pScriptName) != null)
{
mLogger = (Logger) mht.get(pScriptName);
}
else
{
mLogger = Logger.getInstance(pScriptName);
mht.put(pScriptName,mLogger);
}
return mLogger;
}
The pScriptName variable is Unique. Not really sure why this is happening.
Can someone please help me on this.
Thanks
Karthik
---------------------------------
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
---------------------------------
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.