You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by dp...@apache.org on 2013/06/05 13:40:52 UTC
svn commit: r1489819 - /logging/log4net/trunk/src/Config/XmlConfigurator.cs
Author: dpsenner
Date: Wed Jun 5 11:40:52 2013
New Revision: 1489819
URL: http://svn.apache.org/r1489819
Log:
LOG4NET-335 fix InternalConfigureAndWatch to allow exactly one watch handler for every config file instead of one watch handler for every repository
Modified:
logging/log4net/trunk/src/Config/XmlConfigurator.cs
Modified: logging/log4net/trunk/src/Config/XmlConfigurator.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Config/XmlConfigurator.cs?rev=1489819&r1=1489818&r2=1489819&view=diff
==============================================================================
--- logging/log4net/trunk/src/Config/XmlConfigurator.cs (original)
+++ logging/log4net/trunk/src/Config/XmlConfigurator.cs Wed Jun 5 11:40:52 2013
@@ -880,18 +880,18 @@ namespace log4net.Config
{
// support multiple repositories each having their own watcher
ConfigureAndWatchHandler handler =
- (ConfigureAndWatchHandler)m_repositoryName2ConfigAndWatchHandler[repository.Name];
+ (ConfigureAndWatchHandler)m_repositoryName2ConfigAndWatchHandler[configFile.FullName];
if (handler != null)
{
- m_repositoryName2ConfigAndWatchHandler.Remove(repository.Name);
+ m_repositoryName2ConfigAndWatchHandler.Remove(configFile.FullName);
handler.Dispose();
}
// Create and start a watch handler that will reload the
// configuration whenever the config file is modified.
handler = new ConfigureAndWatchHandler(repository, configFile);
- m_repositoryName2ConfigAndWatchHandler[repository.Name] = handler;
+ m_repositoryName2ConfigAndWatchHandler[configFile.FullName] = handler;
}
}
catch(Exception ex)