This project shows how to write a custom configuration factory.
In order to use it:
-
install the artifact and its parent locally with
mvn install
, -
add it to your Maven project:
<dependency> <groupId>org.apache.logging.log4j.samples</groupId> <artifactId>log4j-samples-configuration</artifactId> <version>2.19.1-SNAPSHOT</version> </dependency>
-
add an empty
log4j2.custom
file to your project’s resources.