Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
In order to reproduce a problem (e.g., HIVE-24569) or validate that a log4j2 configuration is working as expected it is necessary to run a test and explicitly specify which configuration should be used. Moreover, after the end of the test in question it is desirable to restore the old logging configuration that was used before launching the test to avoid affecting the overall logging output.
The goal of this issue is to introduce a convenient & declarative way of running tests with log4j2 configurations based on Jupiter extensions and annotations. The test could like below:
@Test @Log4jConfig("test-log4j2.properties") void testUseExplicitConfig() { // Do something and assert }
Attachments
Issue Links
- is related to
-
HIVE-26309 Remove Log4jConfig junit extension in favor LoggerContextSource
- Closed
- links to