Re: Context data propagation and logger-bound context data

2024-03-21 Thread Raman Gupta
On Thu, Mar 21, 2024 at 9:58 PM Ralph Goers wrote: > > > On Mar 21, 2024, at 2:48 PM, Raman Gupta wrote: > > > > On Thu, Mar 21, 2024 at 5:30 AM Piotr P. Karwasz < > piotr.karw...@gmail.com> > > wrote: > > > >> Hi Ralph, > >> > >> On Thu, 21 Mar 2024 at 07:03, Ralph Goers > >> wrote: > 1.

Re: Context data propagation and logger-bound context data

2024-03-21 Thread Ralph Goers
> On Mar 21, 2024, at 3:19 PM, Piotr P. Karwasz wrote: > > > PS: In the `main` branch I plan to replace the default > ReusableMessageFactory with ReusableLogEventFactory: > > * this change should have a minimal impact on memory (events are not > much larger than messages), > * it can skip a

Re: Context data propagation and logger-bound context data

2024-03-21 Thread Ralph Goers
> On Mar 21, 2024, at 2:48 PM, Raman Gupta wrote: > > On Thu, Mar 21, 2024 at 5:30 AM Piotr P. Karwasz > wrote: > >> Hi Ralph, >> >> On Thu, 21 Mar 2024 at 07:03, Ralph Goers >> wrote: 1. Raman and Mikko would like to bind context data to an object implementing the `Logger` inter

Re: Context data propagation and logger-bound context data

2024-03-21 Thread Raman Gupta
On Thu, Mar 21, 2024 at 6:19 PM Piotr P. Karwasz wrote: > Hi Raman, > > On Thu, 21 Mar 2024 at 22:51, Raman Gupta wrote: > > > > For example, a User could configure a custom MessageFactory that > > > provides an extension of MapMessage that causes the message to include > data > > > from the cla

Re: Context data propagation and logger-bound context data

2024-03-21 Thread Piotr P. Karwasz
Hi Raman, On Thu, 21 Mar 2024 at 22:51, Raman Gupta wrote: > > > For example, a User could configure a custom MessageFactory that > > provides an extension of MapMessage that causes the message to include data > > from the class or resource. Going to the extreme of trying to shoehorn in > > Conte

Re: Context data propagation and logger-bound context data

2024-03-21 Thread Raman Gupta
On Thu, Mar 21, 2024 at 5:30 AM Piotr P. Karwasz wrote: > Hi Ralph, > > On Thu, 21 Mar 2024 at 07:03, Ralph Goers > wrote: > > > 1. Raman and Mikko would like to bind context data to an object > > > implementing the `Logger` interface or more generally to a service > > > object (e.g. resource ma

Re: [VOTE] Release Apache Log4j Tools 0.8.0 (RC3)

2024-03-21 Thread Piotr P. Karwasz
+1, release the artifacts. I repeated the same checks as in RC2: * distribution hashes: OK * distribution signatures: OK * Maven artifacts are reproducible: OK * Maven artifacts are the same as binary distribution: OK * new artifacts are documented on the website. Piotr On Thu, 21 Mar 2024 at 1

Re: Context data propagation and logger-bound context data

2024-03-21 Thread Matt Sicker
https://www.javadoc.io/doc/org.apache.logging.log4j/log4j-api/3.0.0-alpha1/org.apache.logging.log4j/org/apache/logging/log4j/LogManager.html Pass your custom MessageFactory here. It’s an optional argument when creating the Logger. Also, I’m not sure where to even find the current javadocs for t

Re: [VOTE] Release Apache Log4j Tools 0.8.0 (RC3)

2024-03-21 Thread Volkan Yazıcı
What do you mean? That is exactly the link I shared in the very first section of the VOTE email you responded to. See the `=== Timing & Differences` header. Note that you don't need to trust the GitHub view, you can diff RC2 and RC3 using their commit IDs available in the associated VOTE emails. O

Re: [VOTE] Release Apache Log4j Tools 0.8.0 (RC3)

2024-03-21 Thread Gary Gregory
What's the difference with RC2? TY, Gary On Thu, Mar 21, 2024, 11:46 AM Volkan Yazıcı wrote: > This is a vote to release the Apache Log4j Tools 0.8.0 (RC3). > > Website: https://logging.staged.apache.org/log4j/tools > GitHub: https://github.com/apache/logging-log4j-tools > Commit: 7d157b61e198e

[VOTE] Release Apache Log4j Tools 0.8.0 (RC3)

2024-03-21 Thread Volkan Yazıcı
This is a vote to release the Apache Log4j Tools 0.8.0 (RC3). Website: https://logging.staged.apache.org/log4j/tools GitHub: https://github.com/apache/logging-log4j-tools Commit: 7d157b61e198e3baca816129d8d406b300436e2f Distribution: https://dist.apache.org/repos/dist/dev/logging/log4j-tools Nexus

Re: [VOTE] Release Apache Log4j Tools 0.8.0 (RC2)

2024-03-21 Thread Volkan Yazıcı
I need to cancel this RC2 VOTE. Encountered another shortcoming. I will issue an RC3 promptly. On Tue, Mar 19, 2024 at 12:34 PM Volkan Yazıcı wrote: > This is a vote to release the Apache Log4j Tools 0.8.0 (RC2). > > Website: https://logging.staged.apache.org/log4j/tools > GitHub: https://github

Re: Context data propagation and logger-bound context data

2024-03-21 Thread Volkan Yazıcı
Ralph, could you show how those two users can use a `MessageFactory` to create `Logger`s with predefined additional context data? On Thu, Mar 21, 2024 at 7:25 AM Ralph Goers wrote: > Unfortunately this is another message I somehow didn't get in my inbox. > Replying to it via lists.a.o is not a g

Re: Context data propagation and logger-bound context data

2024-03-21 Thread Piotr P. Karwasz
Hi Ralph, On Thu, 21 Mar 2024 at 07:03, Ralph Goers wrote: > > 1. Raman and Mikko would like to bind context data to an object > > implementing the `Logger` interface or more generally to a service > > object (e.g. resource manager, DAO and variants), > > Yes, I’ve seen that. Personally, I am not

Re: Context data propagation and logger-bound context data

2024-03-21 Thread Piotr P. Karwasz
Hi Ralph, On Wed, 20 Mar 2024 at 17:11, Ralph Goers wrote: > > 1. I am experimenting with adding Thread support to ScopedContext as we > speak. It should be straightforward. > > I am not sure we ever want to deal with ScopedValue. ScopedContext provides > the same functionality plus integration