Looks like Log4J2 configuration instructions for Gradle-based projects is not given in the docs.
I usually exclude spring-boot-starter-logging from all my configurations using this code snippet:
configurations {
all {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
}
}
and then explicitly add a dependency on org.springframework.boot:spring-boot-starter-log4j2 to switch to Log4J2.
The docs should be updated with instructions outlining these steps.
I can create a PR with the changes, but is this the recommended approach to setup Spring Boot with Log4J2 in a Gradle-based project?