You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Stefan Bodewig (Resolved) (JIRA)" <ji...@apache.org> on 2011/10/04 17:54:34 UTC

[jira] [Resolved] (LOG4NET-246) Make it possible to choose whether or not to watch configuration files specified using the "log4net.Config" appsetting key

     [ https://issues.apache.org/jira/browse/LOG4NET-246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Bodewig resolved LOG4NET-246.
------------------------------------

    Resolution: Fixed

Docs added with svn revision 1178842
                
> Make it possible to choose whether or not to watch configuration files specified using the "log4net.Config" appsetting key 
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-246
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-246
>             Project: Log4net
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.2.10
>            Reporter: Uri Goldstein
>            Priority: Minor
>              Labels: appsettings, configuration
>             Fix For: 1.2.11
>
>         Attachments: DefaultRepositorySelector-LOG4NET-246-PatchA.patch
>
>
> Currently (v1.2.10) it is possible to specify a configuration file for log4net by adding a key like this in the host application's configuration <appSettings> section:
> <add key="log4net.Config" value="Log.config" />
> This defaults to invoking XmlConfigurator.Configure() on the file specified (log4net/Core/DefaultRepositorySelector.cs,  line 725). This means the file is not watched for changes during program run time.
> It would be nice if there was some way similar to the above <appSettings> key to specify whether log4net should watch the file or not.
> I might propose that a new key is introduced in this fashion:
> <add key="log4net.Config.Watch" value="true" />
> This key would denote a bool value defaulting to false. The value would only be taken into consideration if the "log4net.Config" key is specified.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira