The FileAppenders automatically create the file so they are ready to
write to it.  AFAIK there is no way to delay creating the file until
needed unless you create your own appender.

On 9/20/05, Vin Karthik <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I have an issue with writing log messages to FileAppender.I have 4 logger 
> different loggers for 4 different modules in the properties file and each 
> time i pass the module name to create an instance of that logger.The 4 
> loggers have 4 different File Appenders each pointing to a different file.Now 
> when i run the program the first time for 1 module, the log files for all the 
> 4 modules get created.Only one of the file has meaningful logs and the other 
> 3 are empty files( 0 byte).I dont want the 3 files other than the one which i 
> am actually running the script for to be created.How do i get rid of this 
> issue.
>
> Please do help me on the same
>
> Thanks in advance
> Karthik
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


--
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]

Reply via email to