Log4net
  1. Log4net
  2. LOG4NET-123

[PATCH] EnvironmentPatternConverter does not expand User or System level environment variables under Windows

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.10
    • Fix Version/s: 1.2.11
    • Component/s: Other
    • Labels:
      None
    • Environment:
      WIndows XP / WIndows 2000. .NET 2.0

      Description

      Under .NET 2.0, there is an additional option on the System.Environment.GetEnvironment method allowing specification of a process level, user level, or machine level environment variable. If not specified, only process level environment variables will be examined.

      The attached patch enhances the EnvironmentPatternConverter. If the specified environment property is not found in the current process environment, the user environment settings will be checked. If the property is still not found, the machine level environment settings will also be tested.

        Activity

        Hide
        Richard J Foster added a comment -

        I have only tested this under .NET 1.1 and 2.0, but with a bit of luck it should be good for other environments also.

        Show
        Richard J Foster added a comment - I have only tested this under .NET 1.1 and 2.0, but with a bit of luck it should be good for other environments also.
        Hide
        Ron Grabowski added a comment -

        Fixed in r608300.

        Show
        Ron Grabowski added a comment - Fixed in r608300.

          People

          • Assignee:
            Ron Grabowski
            Reporter:
            Richard J Foster
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development