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

Log4j2 Incorrectly Uses System Property For Level Setting And Got IllegalArgumentException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.17.1
    • 2.18.0
    • Configuration
    • None
    • IBM WAS 9, JAVA 8

    Description

      We have an environment parameter in IBM WAS 9 running JAVA 8 with a name of "level" and a value of "DEVL".  This parameter is used by applications to detect the environment they are on and worked fine with log4j2.8.2.

      After upgraded to Log4j2.17.1, for some reason the Log4j2 grabs that parameter during the initialization, ignoring the settings in the log4j2.xml, and spills a java.lang.IllegalArgumentException: Unknown level constant [DEVL] in the system log.

       

       

       

       

      Attachments

        1. Log4j2IssueLogs.txt
          32 kB
          Sean Wang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              seanw Sean Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: