Howdy,
You use it all the time if you do configureAndWatch() for log4j.  It has
a concrete implementation as well, I think (PropertyWatchdog or
something like that).  The name of the class pretty much explains it:
watch over a file and fire an event if the file changes.  It's a common
pattern with dozens of implementations all over the place.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Raveendranath, Rohith (LNG - AUS)
>[mailto:[EMAIL PROTECTED]
>Sent: Thursday, August 28, 2003 8:46 PM
>To: 'Log4J Users List'
>Subject: Class FileWatchdog
>
>Hi i was looking at the Log4j API's
>
>There is a Abstract class : Class FileWatchdog
>
>has anyone used this ? can any one provide a brief idea abt this class
plzz
>?
>
>Thanks in Advance
>Rohith
>
>-----Original Message-----
>From: Raveendranath, Rohith (LNG - AUS)
>[mailto:[EMAIL PROTECTED]
>Sent: Friday, 29 August 2003 10:30 AM
>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]
>
>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, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to