Log4j2 support many system properties that can be used to configure various things. If we add a custom Log4j2 PropertySource backed by Spring's Environment then users will be able to configure these system properties directly in their application.properties.