ppkarwasz commented on issue #2844:
URL:
https://github.com/apache/logging-log4j2/issues/2844#issuecomment-2292937419
JSON Template Layout does not print the location by default. You need to set
its `locationInfoEnabled` attribute to `true` in order to enable it:
```xml
<JsonTemplateLayout eventTemplateUri="classpath:test.json"
locationInfoEnabled="true"/>
```
Due to #1692, you also need to upgrade to version 2.21.0 or later, since the
bug prevents location information from being computed for some method calls.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]