Skip to content

Introduce logging support for MvcResult details in the Spring MVC Test framework [SPR-13171] #17762

@spring-projects-issues

Description

@spring-projects-issues

Sam Brannen opened SPR-13171 and commented

Status Quo

The Spring MVC Test framework has always supported printing debug information about the MvcResult to System.out; however, there is currently not a mechanism for choosing a different output stream or for having the information logged via a logging framework.

Deliverables

  1. Introduce a new log() method in MockMvcResultHandlers for logging the output via Commons Logging and Log4j.
    • Consider introducing additional print(..) variants for printing debug information to custom output streams.

Affects: 3.2 GA

Referenced from: commits 693dcba, 688014a, 63a1348

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions