Package com.yubico.yubikit.core
Class Logger
java.lang.Object
com.yubico.yubikit.core.Logger
Deprecated.
This class and all its public methods have been deprecated in YubiKit 2.3.0 and will be removed
in future release.
Helper class allows to customize logs within the SDK
SDK has only 2 levels of logging: debug information and error
If a Logger implementation is not provided the SDK won't produce any logs
- See Also:
-
- Logging Migration contains information about logging in YubiKit, best practices and migration from Logger.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Deprecated.Log a debug message.static void
Deprecated.Log an error message, together with an exception.protected void
Deprecated.Specifies how debug messages are logged.protected void
Deprecated.Specifies how error messages (with exceptions) are logged.static void
Deprecated.Set the Logger implementation to use.
-
Constructor Details
-
Logger
public Logger()Deprecated.
-
-
Method Details
-
logDebug
Deprecated.Specifies how debug messages are logged.If this method is not overridden, then debug messages will not be logged.
- Parameters:
message
- the message can to be logged
-
logError
Deprecated.Specifies how error messages (with exceptions) are logged.If this method is not overridden, then error messages will not be logged.
- Parameters:
message
- the message can to be loggedthrowable
- the exception that can to be logged or counted
-
setLogger
Deprecated.Set the Logger implementation to use. Override the logDebug and logError methods to produce logs. Call with null to disable logging.- Parameters:
logger
- the Logger implementation to use
-
d
Deprecated.Log a debug message. -
e
Deprecated.Log an error message, together with an exception.
-