For better flexibility we will do all library logging through slf4j API.
The Logger interface will be deprecated and removed in the future.
Changes in this PR
deprecated com.yubico.yubikit.core.Logger
replaced com.yubico.yubikit.core.Logger with org.slf4j.Logger in apps and testing modules
in yubikit libraries we use new static methods of com.yubico.yubikit.core.Logger which adapt to either original or new logging implementation. The reason is that we have to avoid breaking changes: original Logger supported only e and d log levels, and slf4j supports greater spectrum, but we have to use only e and d if the application using YubiKit still provides implementation of com.yubico.yubikit.core.Logger. This adapter will be removed in 3.x:
instead of Logger.info(logger, "msg") we will use logger.info("msg") in the library.
updated documentation, and copyright messages, provided migration guide
For better flexibility we will do all library logging through
slf4j
API. TheLogger
interface will be deprecated and removed in the future.Changes in this PR
com.yubico.yubikit.core.Logger
com.yubico.yubikit.core.Logger
withorg.slf4j.Logger
in apps and testing modulesin yubikit libraries we use new static methods of
com.yubico.yubikit.core.Logger
which adapt to either original or new logging implementation. The reason is that we have to avoid breaking changes: originalLogger
supported onlye
andd
log levels, andslf4j
supports greater spectrum, but we have to use onlye
andd
if the application using YubiKit still provides implementation ofcom.yubico.yubikit.core.Logger
. This adapter will be removed in 3.x:Logger.info(logger, "msg")
we will uselogger.info("msg")
in the library.