-
Notifications
You must be signed in to change notification settings - Fork 41.7k
Closed
Description
Up to 1.1.9.RELEASE spring-boot was able to find log4j2.xml itself from src/main/resources. It was picked up and loaded correctly by just dropping the required maven dependencies in.
Since 1.2.0.RELEASE this is not the case anymore. I have to explicit set
logging.config=classpath:log4j2.xml
to load it.
Of course I configured the maven pom as advised:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
Root cause is probably in AbstractLoggingSystem.initialize(), which has been massively refactored between 1.1.9 and 1.2.0.
Metadata
Metadata
Assignees
Labels
type: bugA general bugA general bug