Skip to content

Remove Spring Boot specific documentation from Spring Shell documentationΒ #1289

Closed

Description

@AlexFalappa

The chapter on logging in the reference docs says that setting an empty console pattern can be used to disable the console logging of Spring Boot applications but this infact does not work for recent Spring Boot versions (tested on 4.x).

The correct way should probably be setting logging.console.enabled to false.

In my case setting logging.pattern.console= in application.properties produces:

$> $JAVA_HOME/bin/java --enable-native-access=ALL-UNNAMED -jar target/app-0.0.1-SNAPSHOT.jar create-user
12:46:50,591 |-ERROR in ch.qos.logback.classic.PatternLayout("") - Empty or null pattern.

Activity

  1. ThomasVitale commented on Jan 23, 2026

    @ThomasVitale
    Contributor

    Thanks for raising the issue! The documentation is indeed wrong for Spring Boot 4.

    Related issue in Spring Boot for more context: spring-projects/spring-boot#46592 (comment)

  2. fmbenhassine commented on Jan 26, 2026

    @fmbenhassine
    Contributor

    Nothing specific to Spring Shell in here: https://docs.spring.io/spring-shell/reference/customization/logging.html

    I really don't understand the value of that page in the reference documentation of Spring Shell. And how come a reference documentation suggests to pass an empty value to a property to disable it?

    @ThomasVitale Thank you for the follow up on this and for linking to that issue in Boot.

    I see from spring-projects/spring-boot#46592 (comment) that logging.console.enabled can be set to false now, which is the correct way to proceed.

    I will remove https://docs.spring.io/spring-shell/reference/customization/logging.html from the docs because it's nothing but confusing and has no place to be in Spring Shell's reference documentation.

  3. added and removed
    status/need-triageTeam needs to triage and take a first look
    on Jan 26, 2026
  4. added this to the 4.0.1 milestone on Jan 26, 2026
  5. changed the title [-]Wrong instructions for disabling logging[/-] [+]Remove Spring Boot specific documentation from Spring Shell documentation[/+] on Jan 26, 2026
  6. added a commit that references this issue on Jan 29, 2026
    9104687
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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions