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! Messenger’s low  PC-to-Phone call rates.

Reply via email to