Skip to content

Mark log4j-spring-boot as Spring Boot 2 only in the docs #4533

Backlog

Description

@ramanathan1504

The documentation does not say that log4j-spring-boot targets Spring Boot 2 only:

  • The Log4j Spring Boot Support page says it provides "enhanced support for Spring Boot beyond what Spring Boot itself provides".
  • The SpringPropertySource row gives the module as log4j-spring.
  • log4j2.disableCloudConfigLoggingSystem is described as disabling Log4j2CloudConfigLoggingSystem, which is now Log4j2SpringBootLoggingSystem.

Spring Boot 3 and later provide the spring lookup, the SpringProfile arbiter and the Environment property source themselves. With Spring Boot 4, keeping the module fails at startup: NoSuchMethodError on 4.0.0–4.0.3, and IllegalAccessError from 4.0.4 (spring-projects/spring-boot#49703).

To reproduce: add log4j-spring-boot to a Spring Boot 4.x application that uses spring-boot-starter-log4j2, then start it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions