Skip to content

Add toString hook for GenericMessage to let end-users obfuscate non-public information in logs #24727

Open
@artembilan

Description

@artembilan

See spring-projects/spring-integration#3222 for more info.

An idea to have something like GenericMessage .setToStringFunction(Function<Message<?>, String>) which is going to be called from the Message.toString().
So, end-user can provide any possible way for presenting message in logs.

Thanks

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)status: pending-design-workNeeds design work before any code can be developedtype: enhancementA general enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions