My original question was: How can I wrap an exis...
# kotlin-logging
b
My original question was: How can I wrap an existing slf4j logger within kotlin-logging? There is an internal API call for it:
mu.internal.KLoggerFactory.wrapJLogger()
. Can I also access this functionality from my code? I already got an answer on stack overflow: https://stackoverflow.com/questions/58707703/how-to-wrap-an-existing-slf4j-logger-into-a-kotlin-logger Basically in the kotlin-logging version 1.7.6 there is an extension method to the slf4j logger:
public fun org.slf4j.Logger.toKLogger(): mu.KLogger
👍 1