Skip to content

JsonTemplateLayout does not override the requiresLocation method #1692

Closed
@jalynxing

Description

@jalynxing

JsonTemplateLayout does not implements LocationAware and override requiresLocation, making LoggerConfig::requiresLocation always return false and AbstractLogger::getLocation(fqcn) return null. This results in the location not being passed to its underlying appenders when needed.
Instead, JsonTemplateLayout::requiresLocation should return true when any of its appenders requires a location.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions