[slf4j-dev] Fwd: investigation on the diffusion of innovation along with java releases

Ceki Gülcü ceki at qos.ch
Mon Aug 12 16:46:33 CEST 2019


Hello Anand,

The issue of lambdas is handled by the fluent API introduced in SLF4J 
version 2.0.

See https://www.slf4j.org/manual.html#fluent

Comments welcome,
--
Ceki

On 12/08/2019 16:10, anandsaw wrote:
> Hi Ceki,
> 
> Thank you for the response! I am a researcher working with Fernando on this
> and had some follow up questions.
> 
> The question we want to answer centers around the SLF4J interface itself.
> There has been this issue on the SLF4J API for a while:
> https://jira.qos.ch/browse/SLF4J-371. There appear to be a few workarounds
> that developers have implemented to provide a fluent interface with SLF4J.
> Even, Log4J changed its interface to take a lambda expression as a param and
> allow for lazy evaluation of the expression, thereby providing the client
> with a performance benefit. I see that the discussion on this has been more
> active recently, but is there any reason as to why SLF4J did not make a
> similar change? Are there concrete plans to introduce this change soon?
> 
> Regards,
> Anand Sawant.
> 
> 
> 


More information about the slf4j-dev mailing list