You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "MALLER Stijn (BMB)" <St...@proximus.net> on 2002/10/01 15:00:19 UTC

Reopening files

Hi everyone,

I've written an alternative DailyRollingFileAppender which simulates the
behavior of an old logger used in our company. There's one last
functionality that is lacking and I was wondering if anyone could help
me out or at least point me in the right direction.

At the moment the applications are running fine logging statements to
logfiles. But, if someone just deletes the logfiles on the UNIX
filesystem the application keeps running without throwing any errors
(which you would expect). However, eventhough the logstatements are all
lost (because the application doesn't start a new file automatically) it
doesn't even show a warning.

I would like to change that behavior. The application should detect that
the file has disappeared and restart a new one automatically. Any idea
which method I have to override and what I have to change? This is quite
important...

Thanx in advance,
Stijn


**** DISCLAIMER ****

"This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by other persons than the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer".

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at http://www.proximus.be or refer to any Proximus agent.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>