Here is the logger definition : 
   
  log4j.logger.POC-VALIDATION = DEBUG, POC-VALIDATION, SMTPPOC-VALIDATION
   
  I do Logger.getLogger(pScriptName) also. But i still do this caching in 
addition to it. When i dont specify the log directory for 1 program, it puts 
the logs of the program in the other program's log file. This is another issue 
which i face.

James Stauffer <[EMAIL PROTECTED]> wrote:
  If you call Logger.getLogger() twice with the same parameter then the
same instance will be returned so there is no need to cache it.

On 4/27/06, Vin Karthik wrote:
> I do a System set Property for the log file name and create them dynamically. 
> I cache the logging instance so that the same program whihc is invoking the 
> logger for the same instance the second time. The pScriptName variable is the 
> name of the program invoking the logger.

--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



                
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Reply via email to