Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3304

SpringEnvironmentHolder getEnvironment always return null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.17.1
    • 2.17.2
    • API, Spring
    • None

    Description

      I am using SpringLookup and SpringProfileArbiter for conditional configuration,  but it doesn't work. I debugged into SpringEnvironmentHolder and found that the getEnvironment method always returns null. Then I found the root cause is that when the factoryClassName is present and load successfully, the LogManagerStatus is not set in the static block of LogManager. It could be a bug, please take a look

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Francis_FY francis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: