> On Jul 10, 2022, at 9:36 PM, Piotr P. Karwasz <piotr.karw...@gmail.com> wrote:
> 
> Hi Volkan,
> 
> On Sun, 10 Jul 2022 at 21:47, Volkan Yazıcı <vol...@yazi.ci> wrote:
>> Piotr, what is your take on my claim that this optimization won't work for
>> bridges (SLF4J, log4j-1.2-api, etc.)?
> 
> If you are using a `ThreadLocal` to store the location information
> just before a logging call, you can use it before every Log4j 1.x and
> SLF4J call too. So it should work for every API that has a bridge to
> Log4j2.
> 
> However, if we are weaving anyway, we could as well replace all
> references to Log4j 1.x and SLF4J with direct Log4j2 calls. For old
> EOL libraries using Log4j 1.x this could be quite popular.


I love this! It is essentially the same thing I am proposing but looking for 
other API calls as well as those made to Log4j 2.

Ralph

Reply via email to