ramanathan1504 opened a new pull request, #3874:
URL: https://github.com/apache/logging-log4j2/pull/3874

   This pull request introduces support for a new `jvmrunargs` lookup in Log4j, 
allowing users to access JVM runtime arguments via configuration and lookups. 
The changes include registering the new lookup in the `Interpolator`, adding 
tests to verify its registration and behavior, and providing a sample 
configuration file that demonstrates its usage.
   
   **New JVM Runtime Arguments Lookup:**
   
   - Registered the `jvmrunargs` lookup in the `Interpolator` class, enabling 
retrieval of JVM arguments through `${jvmrunargs:...}` expressions in Log4j 
configurations.
   
   **Testing and Verification:**
   
   - Added `JvmRunArgsLookupTest` to verify that the `jvmrunargs` lookup is 
registered and behaves as expected, including null and non-null cases.
   - Introduced `JvmRunArgsIntegrationTest` to ensure the lookup works 
correctly within a logging configuration.
   
   **Configuration Example:**
   
   - Added a sample `log4j2-test.xml` configuration file that demonstrates how 
to use the new `jvmrunargs` lookup in a pattern layout for console output.


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