Skip to content

Need detailed log for start and stop Lifecycle beans [SPR-6769] #11435

@spring-projects-issues

Description

@spring-projects-issues

Liu, Yinwei David opened SPR-6769 and commented

When Spring starts/stops its application context, it uses the class DefaultLifecycleProcessor in Spring 3 to start/stop all Lifecycle beans. However, I think the logging information in DefaultLifecycleProcessor's LifecycleGroup.start() and LifecycleGroup.stop() method is not enough, which does not have some useful information, such as bean name,

Currently, it only has this log info in its class:
if (logger.isWarnEnabled()) {
logger.warn("failed to shutdown beans with phase value " +
this.phase + " within timeout of " + this.timeout);
}

Can we add more detailed debug info here to indicate which bean has been started and which bean has been stopped, and which bean failed?


Affects: 3.0 GA

Issue Links:

Referenced from: commits a897e3f

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