slf4j icon indicating copy to clipboard operation
slf4j copied to clipboard

WIP: SLF4J-504 Add functional logging methods

Open alekseytomin opened this issue 4 years ago • 4 comments

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

In this example, I've added trace method for this. If it OK I will add all other methods.

alekseytomin avatar Dec 02 '20 10:12 alekseytomin

An extension of the API with Supplier-based creation of message texts to log would not only be useful for Kotlin developers, IMHO. Java developers could also take advantage of that. Pull request #252 (and others?) proposes something very similar.

twwwt avatar Dec 03 '20 09:12 twwwt

This is incredible! A worldwide used library but the project is idle for over one year. Beta and alfa versions have been released for the 1.8.x and 2.0 versions and no more progress. Is it a dead project?

Tibor17 avatar Feb 07 '21 02:02 Tibor17

This is quite useful and could have and with the default implementation does not break a thing..., I hope this will reach master soon.

victorherraiz-santander avatar Feb 15 '22 19:02 victorherraiz-santander

given that the fluent API accomplishes the same, this change will not be added.

ceki avatar Feb 15 '22 20:02 ceki