Log4net
  1. Log4net
  2. LOG4NET-246

Make it possible to choose whether or not to watch configuration files specified using the "log4net.Config" appsetting key

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.10
    • Fix Version/s: 1.2.11
    • Component/s: Core

      Description

      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.

        Activity

        Uri Goldstein made changes -
        Comment [ Hello,

        I am away on vacation until Monday, October 10, 2011. I will not be
        able to read your email and respond until I get back.

        Thank you for your patience.


        Kind Regards,
        Uri Goldstein
        ]
        Stefan Bodewig made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Stefan Bodewig made changes -
        Fix Version/s 1.2.11 [ 12310980 ]
        Uri Goldstein made changes -
        Field Original Value New Value
        Attachment DefaultRepositorySelector-LOG4NET-246-PatchA.patch [ 12448980 ]
        Uri Goldstein created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Uri Goldstein
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development