ppkarwasz commented on PR #3394:
URL: https://github.com/apache/logging-log4j2/pull/3394#issuecomment-2640620357

   > Could you verify the log4j-script-ref-test.xml? Also I did try writing the 
test cases my self and I was getting the ScriptManager == null error everytime. 
How do i handle this?
   
   To enable the ScriptManager, you need to set the 
[`log4j2.scriptEnableLanguages`](https://logging.apache.org/log4j/2.x/manual/systemproperties.html#log4j2.scriptEnableLanguages)
 to an non empty value. We have a helper to set a Log4j property for a single 
test:
   
   ```java
   @SetTestProperty(key = "log4j2.scriptEnableLanguages", value = "groovy")
   @LoggerContextSource("log4j-script-ref-test.xml")
   class ScriptConfigurationTest {
     …
   };
   ```


-- 
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