vy commented on issue #4056:
URL: 
https://github.com/apache/logging-log4j2/issues/4056#issuecomment-4066432902

   It works for me:
   
       $ cat java-workbench/src/main/resources/Log4jIssue4056Test.properties 
       status = off
       appender.0.type = Console
       appender.0.name = CONSOLE
       appender.0.layout.type = PatternLayout
       appender.0.layout.pattern = %d [%t] %p %c - %m%n
       rootLogger.level = ${env:LOG_LEVEL:-INFO}
       rootLogger.appenderRef.0.ref = CONSOLE
   
       $ echo 'org.apache.logging.log4j.LogManager.getLogger().info("foo")' \
       | jshell -s --class-path 
/path/to/log4j-api-2.24.3.jar:/path/to/log4j-core-2.24.3.jar \
       -R-Dlog4j.configurationFile=Log4jIssue4056Test.properties 
       -> 2026-03-16 10:49:52,411 [main] INFO REPL.$JShell$2 - foo
   
       $ echo 'org.apache.logging.log4j.LogManager.getLogger().info("foo")' \
       | LOG_LEVEL=ERROR \
       jshell -s --class-path 
/path/to/log4j-api-2.24.3.jar:/path/to/log4j-core-2.24.3.jar \
       -R-Dlog4j.configurationFile=Log4jIssue4056Test.properties 
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to