BAEL-1338 - Programmatic Log4j2

This commit features a number of tests for programmatically configuring log4j.

Note that in order to have these tests live together, there is a slight deviation in how
these are configured vs how they are in the real world, specifically around static initialization.

Generally speaking, whenever static initialization is needed for a given configuration,
it is embedded in a @BeforeClass-annotated JUnit method.

Also, to isolate the tests from each other's plugins, annotation processing was turned off
in the build. This is not required when doing programmatic configuration of log4j. It is simply
needed for the specific use case of demonstrating these various log4j plugins all in the
same module.
This commit is contained in:
Josh Cummings
2018-05-19 22:07:54 -06:00
committed by GitHub
parent 8820ebb00f
commit ba55cfb67d
25 changed files with 181 additions and 390 deletions
-1
View File
@@ -94,7 +94,6 @@
<module>logging-modules/log-mdc</module>
<module>logging-modules/log4j</module>
<module>logging-modules/log4j2</module>
<module>logging-modules/log4j2-programmatic-configuration</module>
<module>logging-modules/logback</module>
<module>lombok</module>
<module>mapstruct</module>