Skip to content

Unable to override org.springframework logging levels since 2.1.0.M2 #14310

Closed
@docent

Description

@docent

Since 2.1.0M2, overriding Spring logging levels in dev mode using logback-spring.xml doesn't work. Attaching a project generated with Initializr, with logback-spring.xml file (that lowers spring level to WARN) added in resources
demo (8).zip. To reproduce:

  • run gradlew bootRun
  • observe log messages
  • revert boot version to 2.1.0.M1 in build.gradle
  • run gradlew bootRun again and watch spring related log entries disappear

On a side note, I'm not sure if the decision to include these DEBUG logs by default, even in dev mode, was well thought. The result is a lot of unhelpful information in the log. Frankly I would rather leave the DEBUG off by default, as 99% percent of the time I don't need these logs while developing.

Also reported here

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