That may be YOUR guiding factor but it is NOT the common guiding factor.
Log4j was designed to meet the large majority of needs, not your specific
needs </soapbox>. I do not want my web app to come crashing to a halt
because someone accidentally deletes an active logfile or log4j is
misconfigured.

If this is your requirement, you are probably going to have to either:

1) Customize log4j to change it's failure mode
2) Implement customized logging where logging is part of the application and
logging failure is as critical as an application failure.

You can easily add a warning to the console if the log file is deleted but
log4j doesn't continually throw warnings for a reason: it kills performance.

-----Original Message-----
From: Raveendranath, Rohith (LNG - AUS)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 17:30
To: 'Log4J Users List'
Subject: RE: Behaviour in Log4j when Logfile is deleted.


whetrher logging activity is critcal for any application will be the guiding
factor to decide whether the application should crash i case of logging
failure.

Morover what iam asking is should't a warning be thrown on the console
saying that the logging cannot be proceeded or so 



-----Original Message-----
From: Charles Hudak [mailto:[EMAIL PROTECTED]
Sent: Friday, 29 August 2003 10:23 AM
To: 'Log4J Users List'
Subject: RE: Behaviour in Log4j when Logfile is deleted.


log4j is fail stop. Logging doesn't and shouldn't throw an exception to your
application and cause it to crash.

-----Original Message-----
From: Raveendranath, Rohith (LNG - AUS)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 17:12
To: 'Log4J Users List'
Subject: Behaviour in Log4j when Logfile is deleted.


Hi all,

I am using Lo4j 1.2.8, 

During the cource of my application  running i deleted the log file. Now
there is no exception/error thrown.

The application keeps on running ,possibly ignoring the logging part.

Whys is this behaviour happening,should the log4j throw exception as its no
longer finding the Log File.

Thanks and regards
Rohith

This e-mail is for the use of the intended recipient(s) only.  If you have
received this e-mail in error, please notify the sender immediately and then
delete it.  If you are not the intended recipient, you must not use,
disclose
or distribute this e-mail without the author's permission.  We have taken
precautions to minimise the risk of transmitting software viruses, but we
advise you to carry out your own virus checks on any attachment to this
e-mail.
We cannot accept liability for any loss or damage caused by software
viruses.

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

This e-mail is for the use of the intended recipient(s) only.  If you have
received this e-mail in error, please notify the sender immediately and then
delete it.  If you are not the intended recipient, you must not use,
disclose
or distribute this e-mail without the author's permission.  We have taken
precautions to minimise the risk of transmitting software viruses, but we
advise you to carry out your own virus checks on any attachment to this
e-mail.
We cannot accept liability for any loss or damage caused by software
viruses.

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

This e-mail is for the use of the intended recipient(s) only.  If you have
received this e-mail in error, please notify the sender immediately and then
delete it.  If you are not the intended recipient, you must not use,
disclose
or distribute this e-mail without the author's permission.  We have taken
precautions to minimise the risk of transmitting software viruses, but we
advise you to carry out your own virus checks on any attachment to this
e-mail.
We cannot accept liability for any loss or damage caused by software
viruses.

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

This e-mail is for the use of the intended recipient(s) only.  If you have
received this e-mail in error, please notify the sender immediately and then
delete it.  If you are not the intended recipient, you must not use,
disclose
or distribute this e-mail without the author's permission.  We have taken
precautions to minimise the risk of transmitting software viruses, but we
advise you to carry out your own virus checks on any attachment to this
e-mail.
We cannot accept liability for any loss or damage caused by software
viruses.

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

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

This e-mail is for the use of the intended recipient(s) only.  If you have
received this e-mail in error, please notify the sender immediately and then
delete it.  If you are not the intended recipient, you must not use,
disclose
or distribute this e-mail without the author's permission.  We have taken
precautions to minimise the risk of transmitting software viruses, but we
advise you to carry out your own virus checks on any attachment to this
e-mail.
We cannot accept liability for any loss or damage caused by software
viruses.

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

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

Reply via email to