Skip to content

Log messages with partially missing parameters #2380

Closed
@ppkarwasz

Description

@ppkarwasz

Log4j version 2.20.0 did also log messages with missing parameters. A call like:

logger.info("{}, {} and {}", 1, 2);

resulted in a partially replaced message: 1, 2, and {}.

The behavior changed in 2.21.0 and should be restored for backward compatibility.

Metadata

Metadata

Assignees

Labels

apiAffects the public APIbugIncorrect, unexpected, or unintended behavior of existing code

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions