Skip to content

spring boot fails to set logging level correctly while using log4j2 instead of logback #18551

Closed
@c3y28

Description

@c3y28
  • Spring Boot 2.1.x.RELEASE
  • JUL as logging API
  • Oracle JDK 11.0.4 or Oracle JDK 1.8.0_221

setting logging level to TRACE in application.properties but not take effect. Actually logging.properties under working JAVA_HOME takes effect

if using default logging.properties, we will find missing these level items in log(config, fine, finer, finest)

please find the attached for a simple demo to reproduce the issue.
spring-boot-logging-demo.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions