Skip to content

Improve logging for development (DEBUG vs TRACE) [SPR-16946] #21485

@spring-projects-issues

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-16946 and commented

This started in Spring Boot #902, then #21437, and I'm opening this general ticket to revisit logging for development purposes more broadly, at the container level and any other module.

The general idea is that logging at DEBUG level should be user-friendly and carefully calibrated to be minimal, yet helpful by including the most relevant bits of information that are useful over and over again (vs debugging a specific issue). That means being relatively Spartan at DEBUG level, and showing more at TRACE as two tiers of debugging information.

Often it is difficult to know in isolation if a piece of information is useful, if it is duplicated, if it adds too much noise, or if it reads well. It's only possible to spot the issues and decide what looks best by viewing the overall logging.

I'll append some specific examples of core logging related to web startup, but a general review would probably be needed.


Affects: 5.0.7

Sub-tasks:

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions