According to doc https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-logging.html the name shall work with "log4j2-spring.xml". but only does with "log4j2.xml" as proposed from https://github.com/spring-cloud/spring-cloud-commons/issues/72#issuecomment-165822704