javaru
08/02/2023, 8:11 PMKLogger
into some methods requiring a SLF4J Logger
. In 5.x, Klogger
no longer extends org.slf4j.Logger
And so we can’t directly pass it in. In this comment for Issue 264, it was said:
The idea is that slf4j will still be supported, but instead of inheritance it will be via wrapping it.I’m not seeing how to wrap a
KLogger
in order to make it useable as a SLF4J Logger
. Any guidance?oshai
08/02/2023, 10:03 PM(logger as DelegatingKLogger<org.slf4j.Logger>).underlyingLogger
javaru
08/03/2023, 12:23 AM