You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove Spring Boot specific documentation from Spring Shell documentationΒ #1289
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.
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.
changed the title [-]Wrong instructions for disabling logging[/-][+]Remove Spring Boot specific documentation from Spring Shell documentation[/+]on Jan 26, 2026
Activity
ThomasVitale commentedon Jan 23, 2026
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)
fmbenhassine commentedon Jan 26, 2026
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.enabledcan be set tofalsenow, 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.
[-]Wrong instructions for disabling logging[/-][+]Remove Spring Boot specific documentation from Spring Shell documentation[/+]Remove Spring Boot specific documentation about logging