Uploaded image for project: 'Log4net'
  1. Log4net
  2. LOG4NET-123

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.10
    • 1.2.11
    • Other
    • None
    • 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.

      Attachments

        1. EnvironmentPatchAndTests.patch
          6 kB
          Richard J Foster

        Activity

          People

            ron liu ron
            richardjfoster Richard J Foster
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: