Re: [D] Is using %uuid{RANDOM} pattern in JsonTemplateLayout considered garbage-free? [logging-log4j2]

2025-04-08 Thread via GitHub


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



Re: [VOTE] Apache Logging Parent `12.1.0` (RC1)

2025-04-08 Thread Piotr P. Karwasz

Hi,

On 1.04.2025 18:14, Piotr P. Karwasz wrote:

This is a lazy-vote to release the Apache Logging Parent `12.1.0`.

Website: https://logging.staged.apache.org/logging-parent-12.1.0
GitHub: https://github.com/apache/logging-parent
Commit: c470a36f072ecb716e8aef7c5719d50ff9d1a9dc
Distribution: 
https://dist.apache.org/repos/dist/dev/logging/logging-parent/12.1.0
Nexus: 
https://repository.apache.org:443/content/repositories/orgapachelogging-1313

Signing key: 0x077e8893a6dcc33dd4a4d5b256e73ba9a0b592d0
Review kit: 
https://logging.apache.org/logging-parent/release-review-instructions.html


Please download, test, and cast your votes on this mailing list.

[ ] +1, release the artifacts
[ ] -1, don't release, because...


And this is my +1. With it the vote passes with two binding +1 from Jan 
and myself.


I will continue the release process.

Piotr