[slf4j-dev] [JIRA] SLF4J-504: New methods for Kotlin (scala?) developers.

Aleksey Tomin alxt at yandex.ru
Thu Dec 3 09:45:03 CET 2020


Hi for all

What do you think about new methods in Logger interface for kotlin/scala 
developers?

We want to use
         logger.trace { "Message with $parameter" }
instead of
         logger.trace("Message with {}", parameter)

It will be allowed when methods like

default void trace(Supplier<String> msgSupplier) {
	if (isTraceEnabled()) {
	        trace(msgSupplier.get());
	    }
	}

will be added info org.slf4j.Logger interface.

I've done the first part of this in 
https://github.com/qos-ch/slf4j/pull/253 and I will to done all of this 
if someone want to review.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-dev/attachments/20201203/be3a21ce/attachment.html>


More information about the slf4j-dev mailing list