Closed as not planned
Description
As the title says, when creating a fresh Spring Boot 3.2.0 project the console logs generated by Logback look like this by default
2023-12-01T08:57:37.478+01:00 INFO 22208 --- [ main] com.example.demo.DemoApplicationTests : No active profile set, falling back to 1 default profile: "default"
2023-12-01T08:57:38.181+01:00 INFO 22208 --- [ main] com.example.demo.DemoApplicationTests : Started DemoApplicationTests in 0.832 seconds (process running for 1.308)
After switching from Logback to Log4j2 the console logs look like this
2023-12-01T09:02:33.314+01:00 INFO 14764 --- ${sys:LOGGED_APPLICATION_NAME}[ main] c.e.d.DemoApplicationTests : No active profile set, falling back to 1 default profile: "default"
2023-12-01T09:02:33.938+01:00 INFO 14764 --- ${sys:LOGGED_APPLICATION_NAME}[ main] c.e.d.DemoApplicationTests : Started DemoApplicationTests in 0.814 seconds (process running for 1.415)
Setting the new logging.include-application-name
property to false
does not make the ${sys:LOGGED_APPLICATION_NAME}
disappear from the logged console output.
Here is a small reproducer: demo-reproducer.zip that can be run with mvn spring-boot:run