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?

Dieter
  • 301
  • 4
  • 11

1 Answers1

1

It's possible to use the extension method: Logger.toKLogger() since 1.7.6. see this issue for more details: https://github.com/MicroUtils/kotlin-logging/issues/88

oshai
  • 14,865
  • 26
  • 84
  • 140