ppkarwasz commented on issue #3577:
URL: 
https://github.com/apache/logging-log4j2/issues/3577#issuecomment-2755463919

   @voddan,
   
   Can you add more context, what kind of application are you running? 
`JAVA_OPTS` is supported only by some Java applications, unlike 
`JAVA_TOOL_OPTIONS`, which is interpreted by newer JVMs (see [this SO 
question](https://stackoverflow.com/q/28327620/11748454)).
   
   Did you try:
   ```
   set LOG4J_STATUS_LOGGER_LEVEL=OFF
   ```
   ?
   As far as I remember, Windows will consider double quotes `"` as part of the 
argument, so:
   ```
   set JAVA_OPTS=%JAVA_OPTS% -Dlog4j2.StatusLogger.level="OFF"
   ```
   will actually set the `log4j2.StatusLogger.level` to `"OFF"` (double quotes 
included). If you want to go this way use:
   ```
   set JAVA_OPTS=%JAVA_OPTS% -Dlog4j2.statusLoggerLevel=OFF
   ```
   (the proper capitalization of the property is 
[`log4j2.statusLoggerLevel`](https://logging.apache.org/log4j/2.x/manual/status-logger.html#log4j2.statusLoggerLevel);
 since version `2.24.0` only `log4j2.statusLoggerLevel` and its legacy version 
`log4j2.StatusLogger.level` work).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to