GitHub user ppkarwasz added a comment to the discussion: Is using %uuid{RANDOM}
pattern in JsonTemplateLayout considered garbage-free?
> However, it definitely makes more sense to ensure the UUID is injected into
> the LogEvent before any Appenders process it.
This is the main problem: `%uuid` is a converter and it can not modify the
`LogEvent`. If the same log event is formatted multiple times, each time
> I am not sure why you are assuming only multiple Appenders can cause
> duplicates to occur.
The question is probably, where the duplication occurs. If a log event is
passed to multiple appenders (or twice to the same appender), then `%uuid` will
not be able to identify the duplicates. This was discussed in #3503.
If the duplication occurs in the appender logic (e.g. it is cause by network
retries), then sure, `%uuid` will help.
GitHub link:
https://github.com/apache/logging-log4j2/discussions/3585#discussioncomment-12762864
This is an automatically sent email for dev@logging.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@logging.apache.org