You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2020/10/08 19:47:53 UTC
[GitHub] [logging-log4j2] vy commented on pull request #335: Import of LogstashLayout as JsonTemplateLayout
vy commented on pull request #335:
URL: https://github.com/apache/logging-log4j2/pull/335#issuecomment-705785985
_[Sorry for the late reply, I am pretty much swamped with my day job nowadays.]_
@diepet, I have deliberately left out _blank value elimination_ in `JsonTemplateLayout` (while I was the one who has introduced it in `LogstashLayout`) mostly due to the following reasons:
- It incurs an extra runtime cost.
- Most of the time you don't care. You persist logs in a storage system, e.g., ELK stack, and there null value elimination is provided out of the box by the storage engine in the most efficient way.
If you have a use case which necessitates such a feature, I would like to hear more about it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org