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

   This PR adds a `@TempLoggingDir` extension, which is a reduced version of 
the standard `@TempDir` annotation.
   
   It can be used on **static** fields and:
    * creates a directory specific for the test-class (right now in 
`target/logs/<fully_qualified_class_name>`,
    * injects the field with the value of the directory,
    * creates an entry in the `TestProperties` with key "logging.path",
    * deletes the directory if the test succeeds.
    
    The `TestProperties` entry is available as both a Log4j2 system property 
and using the `${test:logging.path}` lookup.
   


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