Log4net
  1. Log4net
  2. LOG4NET-335

Lost the ability to monitor changes to logger config files when you call ConfigureAndWatch multiple times with different Config File Names - worked fine on 1.2.10.0

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.2.11
    • Fix Version/s: 1.2.12
    • Component/s: Other
    • Labels:
      None
    • Environment:
      Windows Server 2008 R2

      Description

      We had a class that wraps log4net that is in a shared assembly, multiple components in our application create instances to the Log 4 Net Wrapper, each component has its own log config file.

      When the Log4Net wrapper class is constructed it uses log4net.Logmanager to ConfigureAndWatch the log config file passed in to it by the calling component. We recently upgraded from log4net 1.2.10.0 to 1.2.11.0 and log4net no longer detects when the log configuration file is modified. I looked at the source code fro 1.2.11.0 and it appears that it only allows one ConfigureAndWatchHandler object and if you attempt to ConfigureAndWatch more than one logger config file, the previous one is Disposed, thereby removing the ability to detect config file changes

        Activity

        bernard mcgourty created issue -
        Dominik Psenner made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.2.12 [ 12318546 ]
        Resolution Fixed [ 1 ]
        Dominik Psenner made changes -
        Assignee Dominik Psenner [ nachbarslumpi ]

          People

          • Assignee:
            Dominik Psenner
            Reporter:
            bernard mcgourty
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development