Skip to content

JsonEncoder message is not interpolated #731

@madisp

Description

@madisp

Invoking log.info("Destroyed {} gracefully in {} ms.", process, duration) doesn't interpolate the values in the message field when using JsonEncoder.

The arguments are there in the arguments array so technically interpolation can be done downstream (e.g. the consumer of the ndjson-formatted output) but this is a bit surprising and makes integration with log sinks harder.

Any plans to have some form of interpolation supported here? I'd be happy to provide a PR.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions