RE: In Log4J 1.3alpha-6 DOMConfigurator.configureAndWatch() method has been removed

2005-07-27 Thread Mark Womack
+1.  I think this falls into the "making sure 1.3 is as api compatible with
1.2 as we can make it" category.  Curt and Jake have done some good things
around this, but we should all review the areas we are familiar with.

In this particular case, we an probably even change the underlying
functionality to use the new FileWatchdog so that it will not create a new
thread every time it is called, and it will end the thread appropriately
when the repository resets/shutsdown.  But still deprecate it.

-Mark

> -Original Message-
> From: Scott Deboy [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 27, 2005 9:02 AM
> To: Log4J Users List; [EMAIL PROTECTED]
> Subject: RE: In Log4J 1.3alpha-6 DOMConfigurator.configureAndWatch()
> method has been removed
> 
> This is an api used by external folks (including myself) and we should
> deprecate the method instead of removing it.  If we need to put big
> warnings in the JavaDoc about usage and change the underlying
> implementation to use the new plugin framework, that's fine.
> 
> Scott


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



RE: In Log4J 1.3alpha-6 DOMConfigurator.configureAndWatch() method has been removed

2005-07-27 Thread Scott Deboy
This is an api used by external folks (including myself) and we should
deprecate the method instead of removing it.  If we need to put big
warnings in the JavaDoc about usage and change the underlying
implementation to use the new plugin framework, that's fine.

Scott


-Original Message-
From: Mark Womack [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 26, 2005 9:53 AM
To: 'Log4J Users List'; [EMAIL PROTECTED]
Subject: RE: In Log4J 1.3alpha-6 DOMConfigurator.configureAndWatch()
method has been removed

Nicolas,

Yes.  Watchdogs will become more of a first order class/interface and
will come in several implemented flavors: FileWatchdog, URLWatchdog,
SocketWatchdog.  Watchdogs are based on the new Plugin structure, and as
such will be configurable from config files.  Also, Watchdogs will
support any Configurator, not just PropertyConfigurator or
XMLConfigurator; no modification to the Configurator will be required
for one of its sources to be "watched".

org.apache.log4j.watchdog.FileWatchdog is currently in the cvs, so you
can try it out, but be aware that more testing and review is needed.
That is one of my tasks for the 1.3 release.

-Mark

> -Original Message-
> From: Nicolas Martignole [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 26, 2005 6:38 AM
> To: log4j-user@logging.apache.org
> Subject: In Log4J 1.3alpha-6 DOMConfigurator.configureAndWatch() 
> method has been removed
> 
> Hi
> I just downloaded log4j 1.3alpha-6 for testing.
> The method  configureAndWatch(String s) from 
> org.apache.log4j.xml.DOMConfigurator has been removed from the code 
> (see DOMConfigurator v 1.68 under CVS) apparently due to thread issue.
> It seems that this was done after 1.3alpha-1.
> 
> I'd like to know if there's an alternative for this method planned in 
> 1.3 ?
> 
> Thanks
> 
> Nicolas Martignole
> 
> See CVS tree here for DOMConfigurator
> http://cvs.apache.org/viewcvs.cgi/jakarta-
> log4j/src/java/org/apache/log4j/xml/DOMConfigurator.java?rev=1.73&view
> =log
> 
> -
> 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]


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



RE: In Log4J 1.3alpha-6 DOMConfigurator.configureAndWatch() method has been removed

2005-07-26 Thread Mark Womack
Nicolas,

Yes.  Watchdogs will become more of a first order class/interface and will
come in several implemented flavors: FileWatchdog, URLWatchdog,
SocketWatchdog.  Watchdogs are based on the new Plugin structure, and as
such will be configurable from config files.  Also, Watchdogs will support
any Configurator, not just PropertyConfigurator or XMLConfigurator; no
modification to the Configurator will be required for one of its sources to
be "watched".

org.apache.log4j.watchdog.FileWatchdog is currently in the cvs, so you can
try it out, but be aware that more testing and review is needed.  That is
one of my tasks for the 1.3 release.

-Mark

> -Original Message-
> From: Nicolas Martignole [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 26, 2005 6:38 AM
> To: log4j-user@logging.apache.org
> Subject: In Log4J 1.3alpha-6 DOMConfigurator.configureAndWatch() method
> has been removed
> 
> Hi
> I just downloaded log4j 1.3alpha-6 for testing.
> The method  configureAndWatch(String s) from
> org.apache.log4j.xml.DOMConfigurator has been removed from the code
> (see DOMConfigurator v 1.68 under CVS) apparently due to thread issue.
> It seems that this was done after 1.3alpha-1.
> 
> I'd like to know if there's an alternative for this method planned in 1.3
> ?
> 
> Thanks
> 
> Nicolas Martignole
> 
> See CVS tree here for DOMConfigurator
> http://cvs.apache.org/viewcvs.cgi/jakarta-
> log4j/src/java/org/apache/log4j/xml/DOMConfigurator.java?rev=1.73&view=log
> 
> -
> 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]