[ 
https://issues.apache.org/jira/browse/LOG4J2-3413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean Wang updated LOG4J2-3413:
------------------------------
    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.

 

 

 

 

  was:
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 log4j1.x.

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.

 

 

 

 


> Log4j2 Incorrectly Uses System Property For Level Setting And Got 
> IllegalArgumentException
> ------------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-3413
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3413
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 2.17.1
>         Environment: IBM WAS 9, JAVA 8
>            Reporter: Sean Wang
>            Priority: Major
>         Attachments: Log4j2IssueLogs.txt
>
>
> 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.
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to