1

Given an existing slf4j logger, I would like to wrap it into an kotlin-logging logger.

The classes / methods to do that already exists in the library but are internal, so I can't call them: mu.internal.KLoggerFactory.wrapJLogger()

Is there another way to do it, which is accessible to users of the library?

4

1 回答 1

1

可以使用扩展方法:Logger.toKLogger()从 1.7.6 开始。有关更多详细信息,请参阅此问题:https ://github.com/MicroUtils/kotlin-logging/issues/88

于 2019-11-05T09:31:25.983 回答