Skip to content

Wrong instructions for disabling logging #1289

@AlexFalappa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/need-triageTeam needs to triage and take a first look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions